Inspect scheduling constraints from raw YAML.
Section: Pending and Unschedulable Pods
View pod node selectors and affinity
bash
bash
kubectl get pod <pod> -n <namespace> -o jsonpath='{.spec.nodeSelector}{"
"}{.spec.affinity}{"
"}'Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Pending and Unschedulable Pods