• Home
  • 1m Read
More

    How to get resources from Kubernetes Cluster using Kubectl ?

    Get Resources from K8S Cluster using Kubectl cmd:

    In this article we will look into some commands to get resources from Kubernetes cluster using Kubectl

    To get the resource of the objects within Kubernetes Cluster: 

    To get pod from namespace kuberneteslab: 

    $ kubectl get pod -n kuberneteslab 

    If you do not specify the namespace then you will get the result from “default” namespace.

    To get deployment from namespace kuberneteslab: 

     $ kubectl get deployment -n kuberneteslab 

    To get replicasets from namespace kuberneteslab: 

    $ kubectl get replicaset -n kuberneteslab 

    To get service from namespace kuberneteslab: 

     $ kubectl get service -n kuberneteslab 

    To get persistent volume from namespace kuberneteslab: 

     $ kubectl get pv -n kuberneteslab

    To get from all namespaces: 

    $ kubectl get po -A 

    You can use -A option with rest of Kubernetes object too. 

    To get all resources from all namespaces: 

     $ kubectl get all -A

    At Kuberneteslab, we aim for writing the articles based on open source technologies. We hope our article helped you.

    Recent Articles

    SED Command : Search And Replace in file

    This is 1m read blog. In this blog we will check how to replace source string with replacement string for file with...

    How to check top 10 CPU consuming processes on Linux ?

    In shared linux server environment it is important to track the usage of high CPU consuming processes. If...

    Explained: Keep Specific Metrics in Prometheus using Prometheus Job

    This is 1m read article written by Kuberneteslab. In this article we will discuss about the keep action for keeping certain metrics in...

    How to check the Disk Statistics on Linux using Terminal ?

    This is 1m read article written by Kuberneteslab. In this article we will discuss about the disk statistics and how to view...

    How to get resources from Kubernetes Cluster using Kubectl ?

    Get Resources from K8S Cluster using Kubectl cmd: In this article we will look into some commands...

    Related Stories

    Subscribe
    Notify of
    guest
    0 Comments
    Inline Feedbacks
    View all comments

    Stay on op - Ge the daily news in your inbox

    0
    Would love your thoughts, please comment.x
    ()
    x