Skip to content

Why Pods Stay Pending

Pods stay pending when the scheduler cannot find a suitable node, often due to insufficient resources, taints, or affinity constraints.

Insufficient Resources
Taints Not Tolerated
Affinity Constraints

Mental Model

A pod is like a person waiting for an elevator. The doors won't close if: elevator is full (insufficient resources), elevator is for VIPs only (taints without tolerations), or they must wait for their group (affinity constraints).

YAML Example

# Check why pod is pending
kubectl describe pod <pod-name>

# Common causes in events:
# 0/3 nodes available: 3 Insufficient cpu
# 0/3 nodes available: 3 node(s) had taint {node-role.kubernetes.io/control-plane}, that the pod didn't tolerate

Common Misconceptions

  • ✗Pending always means resources issue - FALSE: Could be constraints, taints, etc.
  • ✗Pending pods consume resources - FALSE: They don't run yet
  • ✗All pending pods will eventually run - FALSE: May never schedule if constraints are impossible

Key Takeaways

  • • Pods stay pending when the scheduler cannot find a suitable node, often due to insufficient resources, taints, or affinity constraints.
  • • A pod is like a person waiting for an elevator. The doors won't close if: elevator is full (insuffic...
  • • Check the YAML example for implementation details
  • • Be aware of the common misconceptions listed above
Kubernetes Cosmos•An interactive learning experience
Built by GLM 4.7