Skip to content

Kubectl get pod and node it's on

What

Sometimes you just want to know what node a pod is on easily

How

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

Want to make this site better? Open a PR or help fund hosting costs