Short answer: no node has room left for the pod's requests
0/3 nodes are available: 3 Insufficient cpu means none of the three nodes can fit this pod's resources.requests.cpu. The key point: the scheduler counts the sum of requests of the pods already placed, not actual usage. That is why a pod can stay Pending while kubectl top shows idle CPU.
First check: FailedScheduling in Events
kubectl describe pod checkout-7d9f8-q8w2m -n shop | grep -A4 Events
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedScheduling 2m default-scheduler 0/3 nodes are available: 3 Insufficient cpu. preemption: 0/3 nodes are available: 3 No preemption victims found for incoming pod.
What each FailedScheduling message means
Insufficient cpu·Insufficient memory— no room for the requests (this guide)Too many pods— the per-node pod limit (110 by default)node(s) had untolerated taint— the pod does not tolerate a node taintnode(s) didn't match Pod's node affinity/selector— label constraintspod has unbound immediate PersistentVolumeClaims— the PVC is not bound yet
The number before each reason is how many nodes were ruled out for it. With 1 Insufficient cpu, 2 node(s) had untolerated taint, adding CPU alone will not fix it.
Diagnosis: compare the request with what the node has left
kubectl get pod checkout-7d9f8-q8w2m -n shop -o jsonpath='{.spec.containers[*].resources.requests}'
kubectl describe node node-1 | grep -A6 "Allocated resources"
kubectl top node node-1
{"cpu":"500m","memory":"512Mi"}
Allocated resources:
(Total limits may be over 100 percent, i.e., overcommitted.)
Resource Requests Limits
-------- -------- ------
cpu 3850m (98%) 6 (153%)
memory 5Gi (68%) 9Gi (123%)
NAME CPU(cores) CPU% MEMORY(bytes) MEMORY%
node-1 820m 20% 3120Mi 42%
Requests are at 98% while real usage is 20%. The node has only about 80m of CPU left to hand out, so a pod requesting 500m cannot fit. Do the same comparison on every node.
Cause 1: requests are larger than real use
If usage is low but the request total is full, lower requests to near normal usage. A detail that is easy to miss: if you set only limits, requests default to the same value as the limits.
resources:
requests:
cpu: "250m" # near normal usage — used for scheduling
memory: "512Mi"
Cause 2: LimitRange and ResourceQuota defaults
If the manifest has no requests yet the pod gets large ones, the namespace's LimitRange defaultRequest filled them in. When a ResourceQuota blocks you, the pod is not created at all rather than Pending, and the ReplicaSet events show exceeded quota.
kubectl get limitrange,resourcequota -n shop
kubectl describe resourcequota -n shop
Cause 3: the cluster really is full
If usage is high too, add nodes. If the Cluster Autoscaler does not scale up, check the pod's Events for NotTriggerScaleUp and the node group's maximum size. If a single pod requests more than any node's allocatable, no number of extra nodes will help; you need a bigger node type. A higher PriorityClass lets an important workload evict lower-priority pods (preemption). No preemption victims found for incoming pod at the end of the message means there was nothing to evict.
What not to do
- Removing both requests and limits — the pod becomes BestEffort, nodes get overpacked, and it is the first to be evicted under node pressure.
- Pinning the pod with
nodeName— it only skips the scheduler; if there is no room, the kubelet rejects it withOutOfcpu.
The order to work in
- Read the reasons and node counts in the FailedScheduling event
- Compare the pod's requests with the Requests column of the node's Allocated resources
- Lower oversized requests and check LimitRange and ResourceQuota defaults
- If the cluster really is full, add nodes (check the autoscaler maximum) or use larger ones
To work through this scene as a one-minute quiz, try Pending: new pods do not start after scaling out.
Quick diagnostic checklist
- Read the reasons and the number of ruled-out nodes in FailedScheduling from
kubectl describe pod. - Check whether taint, affinity or PVC reasons are mixed in with Insufficient.
- Read the pod's
resources.requestswith jsonpath. - Look at the Requests percentage under Allocated resources in
kubectl describe node. - Compare real usage from
kubectl top nodewith the requests total. - If only limits are set, confirm that requests were filled in with the same values.
- Check the namespace's LimitRange
defaultRequestand ResourceQuota. - If the cluster is really full, check NotTriggerScaleUp from the autoscaler and the node group's maximum size.