What it means
Pending means the Pod hasn't been placed on a node yet. The scheduler writes the reason as a FailedScheduling event: "0/3 nodes are available" followed by why each node was rejected.
Causes and fixes
Most likely first. Run the check, and if it matches, apply the fix.
1. Requests bigger than any node has free ("Insufficient cpu" or "Insufficient memory")
Check:
kubectl describe pod <pod> | grep -A3 Events
kubectl describe nodes | grep -A6 'Allocated resources'
Fix: Lower the requests to what the app really needs, free capacity, or add nodes.
2. A nodeSelector or affinity no node matches
Check:
kubectl get pod <pod> -o yaml | grep -A5 -E 'nodeSelector|affinity'
Fix: Correct the label (typos are common) or label the intended nodes.
3. A taint the Pod doesn't tolerate ("had untolerated taint")
Check:
kubectl describe nodes | grep -i taints
Fix: Add a matching toleration, or remove the taint if it's left over.
4. A PersistentVolumeClaim that isn't bound
Check:
kubectl get pvc
Fix: See "PVC stuck in Pending".
Fix it yourself
A live machine in your browser with this problem already on it. The grader checks the result.
- Fix Pods Stuck in Pendingeasy 6 min
- Stuck in Pendingmedium 8 min
- Pending on Purpose, Pending by Mistakemedium 8 min
No account needed for your first tries.
Related errors
- 0/3 nodes are available: 1 node(s) had untolerated taint
The only nodes with room are tainted, and the Pod doesn't tolerate the taint.
- PersistentVolumeClaim is Pending: no persistent volumes available for this claim
The claim can't find or create a matching volume, so Pods using it stay Pending.
- Error creating: pods is forbidden: exceeded quota
A ResourceQuota blocks new Pods, and the error hides in the ReplicaSet's events.