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.`
BeginnerTroubleshootingScheduling and Pending Pods
Answer
Likely causes → The sum of CPU requests on every node plus this Pod's request exceeds node allocatable. Actual usage does not matter; the scheduler only counts requests. Often the request is simply too large (cpu: 4 on 4-vCPU nodes, which have under 4 allocatable).
Diagnose →
kubectl get pod web-x -o jsonpath='{.spec.containers[*].resources.requests}'
kubectl describe nodes | grep -A8 'Allocated resources'
kubectl get nodes -o custom-columns=NAME:.metadata.name,CPU:.status.allocatable.cpu
Fix → Right-size the request, add nodes (or let the autoscaler add them), or remove over-requesting workloads. A Pod requesting more than any single node's allocatable will never schedule.
Prevent → Base requests on observed P95 usage (VPA recommender, Goldilocks) and keep node pools large enough for the biggest Pod.
More on Scheduling and Pending Pods
`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`.IntermediatePods are Pending with `node(s) didn't match pod topology spread constraints` even though one zone has lots of free capacity.Intermediate