kubernetes NodeLister get all nodes on which pods can be scheduled code example
Example: kubectl get pod by node
kubectl get pods --all-namespaces -o wide --field-selector spec.nodeName=
kubectl get pods --all-namespaces -o wide --field-selector spec.nodeName=