get pods running on a node code example
Example 1: get pods on specific node
kubectl get pods -n $namespace -o wide --field-selector spec.nodeName=$node
Example 2: get pods running on a node
kubectl get pods -A -o wide
kubectl get pods -n $namespace -o wide --field-selector spec.nodeName=$node
kubectl get pods -A -o wide