Main Menu

Search

KUBERNETES: Kubectl Command To List All Pods And Nodes On Which They are Running

Below Kubectl command can be used to list all pods and nodes on which they are running.

kubectl get pod -o=custom-columns=NODE:.spec.nodeName,NAME:.metadata.name --all-namespaces

Below is sample output.

NODE       NAME
worker2    grafana-78ccdc896d-rsntv
worker2    istio-egressgateway-688d8db5f6-4k57n
worker3    istio-egressgateway-688d8db5f6-lmk42
worker2    istio-ingressgateway-97bd4fb86-2l4xx
worker1    istio-ingressgateway-97bd4fb86-ljjfr
worker3    istiod-6945f949c8-m9tsx
worker1    istiod-6945f949c8-x9mnm
worker3    prometheus-server-85577f7c59-nxlv9


Key words:

commands run running placed pod node how to docs identify identifying

No comments:

Post a Comment