Difference between revisions of "Kubectl get pods"

From wikieduonline
Jump to navigation Jump to search
Line 11: Line 11:
 
  NAMESPACE                NAME                                                          READY  STATUS                      RESTARTS  AGE
 
  NAMESPACE                NAME                                                          READY  STATUS                      RESTARTS  AGE
 
  .../...
 
  .../...
 +
 +
[[minikube]]
 +
kubectl get pods
 +
NAME                              READY  STATUS    RESTARTS  AGE
 +
hello-minikube-64b64df8c9-bxt7g  1/1    Running  0          20m
  
 
   
 
   

Revision as of 16:54, 3 May 2020

kubectl get pods 
No resources found.
kubectl get pods 
NAME                                         READY   STATUS      RESTARTS   AGE
your_pod_name_1                            1/1     Running              1          11d
your_pod_name_2                            1/1     Running              1          11d
your_pod_name_3                            0/1     Completed          0          7h44m
kubectl get pods --all-namespaces 
NAMESPACE                NAME                                                           READY   STATUS                       RESTARTS   AGE
.../...

minikube

kubectl get pods
NAME                              READY   STATUS    RESTARTS   AGE
hello-minikube-64b64df8c9-bxt7g   1/1     Running   0          20m


kubectl get pods -l app=nginx -L YOUR_LABEL
-L or --label-columns

Related commands

See also

Advertising: