Containers · Container Troubleshooting
Pods Stuck in Pending
Cheat sheet · https://pcornel.dk/topic.php?topic=6159
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 topickubectl get pods -o wide— pods, status, node, IPkubectl describe pod <pod>— events and conditionskubectl logs <pod> [-c <c>] [--previous]— container logs (incl. previous crash)kubectl get events --sort-by=.lastTimestamp— recent cluster events
Commands
kubectl describe podkubectl describe resourcequotakubectl 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