Pcornel
Containers · Container Troubleshooting

Pods Stuck in Pending

Cheat sheet · https://pcornel.dk/topic.php?topic=6159

Back to the Topic

Answer

A pod stays Pending when it cannot be scheduled (no node fits) or its volumes are not ready.

Remember

The scheduler message in events says why: insufficient CPU/memory, taints, affinity, unbound PVC, too many pods. Fix requests, capacity or rules.

First checks

  • kubectl describe nodes — first check for this topic
  • kubectl get pods -o wide — pods, status, node, IP
  • kubectl describe pod <pod> — events and conditions
  • kubectl logs <pod> [-c <c>] [--previous] — container logs (incl. previous crash)
  • kubectl get events --sort-by=.lastTimestamp — recent cluster events

Commands

kubectl describe pod
kubectl describe resourcequota
kubectl top

Verify in this order

pod created → scheduler filters nodes → binds or Pending

Where it usually breaks

Requests larger than any node never schedule.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6159

Confirmation

Confirm action

Continue?