A high-priority Pod preempted a batch Pod but is still Pending with `nominatedNodeName` set.
AdvancedTroubleshootingScheduling and Pending Pods
Answer
Likely causes → Preemption is not instant: victims get their full terminationGracePeriodSeconds to exit. If a victim has a long grace period, a stuck preStop hook or a PDB the scheduler had to violate on a best-effort basis, the preemptor waits. Another Pod may also take the freed space if it fits first.
Diagnose →
kubectl get pod critical-x -o jsonpath='{.status.nominatedNodeName}'
kubectl get pods --field-selector spec.nodeName=<node> | grep Terminating
kubectl get pod <victim> -o jsonpath='{.spec.terminationGracePeriodSeconds}'
Fix → Lower grace periods on preemptible batch workloads, fix hanging preStop hooks, and keep enough headroom so critical Pods do not depend on preemption.
Prevent → Use a low PriorityClass with preemptionPolicy: Never for nice-to-have workloads, and set sane grace periods.
More on Scheduling and Pending Pods
Pods are Pending with `0/5 nodes are available: 5 Insufficient cpu. preemption: 0/5 nodes are available: 5 No preemption victims found for incoming pod.`Beginner`kubectl top nodes` shows nodes at 20% CPU, yet new Pods fail with `Insufficient cpu`. Explain it to a developer.Beginner`0/4 nodes are available: 1 node(s) had untolerated taint {node-role.kubernetes.io/control-plane: }, 3 node(s) had untolerated taint {dedicated: gpu}`.BeginnerA StatefulSet Pod is Pending with `pod has unbound immediate PersistentVolumeClaims`.Beginner`0/3 nodes are available: 3 node(s) didn't match Pod's node affinity/selector.`BeginnerA 6-replica Deployment has 3 Pods Running and 3 Pending: `0/3 nodes are available: 3 node(s) didn't match pod anti-affinity rules`.Intermediate