Kube Quick Tip 01: Getting Pods on a Node

September 1, 2018

When debugging problems with Kubernetes Nodes assessing their current workload is critical.

Here’s how:

All Pods:

$ kubectl get po                           \
    --all-namespaces                       \
    -o wide                                \
    --field-selector spec.nodeName=my-node

Non-Running Pods:

$ kubectl get po                                                 \
    --all-namespaces                                             \
    -o wide                                                      \
    --field-selector spec.nodeName=my-node,status.Phase!=Running