Troubleshooting guide
Kubernetes pod stuck in Pending: how to fix it
A Pending pod has been accepted by the cluster but not started. Usually the scheduler has found no node that can hold it, and it says why in an event.
3 min read9 sectionsUpdated
On this page
Common causes
- Insufficient resources. No node has enough unreserved CPU or memory for the pod's requests, even if real usage is low.
- Taints with no matching toleration, such as a GPU node pool.
nodeSelectoror affinity that no node satisfies.- Pod anti-affinity when replicas exceed nodes.
- A PersistentVolumeClaim still unbound, or a volume in a different zone.
- The Cluster Autoscaler hitting its maximum size.
Diagnose it
The scheduler's message summarises how each node failed, for example "0/5 nodes are available: 3 Insufficient cpu, 2 node(s) had untolerated taint".
# The scheduler's explanation
kubectl describe pod my-pod | sed -n '/Events:/,$p'
# What each node has already promised
kubectl describe nodes | grep -A8 'Allocated resources'
# What the pod is asking for
kubectl get pod my-pod -o jsonpath='{.spec.containers[*].resources.requests}{"\n"}'
# Taints, and storage status
kubectl get nodes -o custom-columns=NAME:.metadata.name,TAINTS:.spec.taints
kubectl get pvcFixes
Reduce requests that were guessed too high, using observed usage. Add nodes or let the autoscaler grow. Add the matching toleration, or remove an outdated selector. For storage, use a StorageClass with volumeBindingMode: WaitForFirstConsumer, so the volume is created in the zone where the pod lands. If higher-priority workloads should win, configure a PriorityClass rather than over-provisioning everything.
Catch it automatically
Pending pods are capacity warnings that arrive before an outage. Alert when any pod remains Pending for over five minutes, and watch requested versus allocatable resources per node in your Kubernetes dashboards. See the guide to requests and limits for how to size them from real data.
Why is my pod Pending when nodes have free CPU?
Scheduling uses requested resources, not usage. Nodes may be fully requested but mostly idle.
How long does the autoscaler take to add a node?
Usually a few minutes, depending on the cloud provider and image pull time.
Can a pod stay Pending forever?
Yes. It remains Pending until something changes, such as resources, tolerations or storage.
Related reading
- Kubernetes pod stuck in Terminating: how to fix it: Fix pods stuck in Terminating: finalizers, unreachable nodes, stuck volumes and processes that ignore SIGTERM, and when force deletion is safe to use.
- Celery tasks stuck in PENDING: how to fix it: Fix Celery tasks stuck in PENDING or never running: wrong queues, unregistered tasks, blocked workers and visibility timeouts, with celery inspect commands.
- Infrastructure monitoring: See every host, container and pod on a map coloured by CPU, memory or disk. Drill into Kubernetes, alert on CPU and memory, and start with a one-file agent.
- Kubernetes CrashLoopBackOff: how to fix it: Fix CrashLoopBackOff step by step: read the previous container’s logs and exit code, then solve bad config, failing probes, OOM kills or missing secrets.
- Server and Kubernetes monitoring: See CPU, memory, disk and running instances for servers, Docker containers and Kubernetes pods beside uptime checks, logs and traces, with a one-file agent.
- Kubernetes readiness probe failed: how to fix it: Fix Kubernetes readiness and liveness probe failures: slow startup, wrong ports, overloaded health endpoints and dependency checks that cause cascading outages.
Watch your own site and services with VitalRix
Uptime checks, APM, logs, real-user monitoring, alerts and status pages in one place. Every product has a free tier and no credit card is needed.