Dennis Zheleznyak

Dennis Zheleznyak

DevOps Engineer bigpanda

© 2021

List pods on specific Kube node

To list pods that runs on a specific Kubernetes node:

kubectl get pods --all-namespaces -o wide --field-selector spec.nodeName=NodeName

To list all pods in the current namespace and they nodes they are running on:

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