Difference between revisions of "Kubectl get pods"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 8: Line 8:
 
  your_pod_name_3                            0/1    Completed          0          7h44m
 
  your_pod_name_3                            0/1    Completed          0          7h44m
  
 +
kubectl get pods --all-[[namespaces]]
 +
NAMESPACE                NAME                                                          READY  STATUS                      RESTARTS  AGE
 +
.../...
  
kubectl get pods --all-[[namespaces]]
 
 
   
 
   
 
  kubectl get pods -l app=nginx -L YOUR_LABEL
 
  kubectl get pods -l app=nginx -L YOUR_LABEL

Revision as of 11:18, 18 April 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
.../...


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

Related commands

See also

Advertising: