kubectl get pods -o wide returns a NODES column that shows where each pod is running. Given a pod name, how can I get the corresponding node name? I couldn't find a way to get it from v1.Pod.
mark i also have this problem
kubectl get pod -o=custom-columns=NAME:.metadata.name,STATUS:.status.phase,NODE:.spec.nodeName --all-namespaces
Most helpful comment
kubectl get pod -o=custom-columns=NAME:.metadata.name,STATUS:.status.phase,NODE:.spec.nodeName --all-namespaces