Pods Stuck Pending

Scheduler events, insufficient resources, taints/tolerations, affinity rules, and PVC binding failures.

Overview

Overview

A pod stuck in Pending means the scheduler cannot find a node to place it on. The scheduler checks every node against the pod's requirements (resources, taints, affinity, topology constraints) and filters out nodes that fail any of them, then scores the rest and binds the pod to the best one. If no node qualifies, the pod stays Pending indefinitely.

A new pod passes through the filters in order, and a single failure anywhere keeps it Pending.

  • Resources: does the node have room for the pod's requests?
  • Taints and tolerations: does the pod tolerate every taint on the node?
  • Affinity and spread constraints: does the node carry the required labels, and would placing the pod there keep the spread constraints?
  • Volumes: is the pod's PVC bound? A PVC that is still Pending keeps the pod Pending too.
  • If a node passes all of them, the pod is bound to it. If no node passes, the pod stays Pending indefinitely.

Key concepts

  • Resource requests (scheduling)
  • Taint/toleration
  • PodDisruptionBudget (PDB)
  • TopologySpreadConstraints
  • Cluster Autoscaler

Interview questions

  • A pod is stuck in Pending and kubectl describe shows "0/3 nodes are available: 3 Insufficient memory." How do you resolve it?

Sign up free to read the full topic

More Troubleshooting topics

Start free on Cariara · Coding problems · System design studio