Kubernetes Commands - Part 1

  1. To get the version of Kubernetes running on the cluster:

    kubectl version

  2. To get the list of nodes:

    kubectl get nodes

  3. To get the list of pods:

    kubectl get pods

  4. To get the list of pods and broader/wider information about pods:

    kubectl get pods -o wide

  5. To get the details of a pod specified:

    kubectl describe pod <pod-name>

  6. To get the list of replication controllers:

    kubectl get replicationcontroller/ kubectl get rc

  7. To get the list of replica sets:

    kubectl get replicaset/ kubectl get rs

  8. To get the list of deployments:

    kubectl get deployments

  9. To get the list of deployments, replica sets and pods:

    kubectl get all