Skip to content

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

Key points

  • Look for the FailedScheduling event.
  • Requests, not actual usage, determine whether a pod fits.
  • Taints, selectors and affinity rules silently exclude nodes.
  • An unbound volume keeps a pod pending too.

What Pending means

Pending covers everything before all containers are running. If no node is assigned, the scheduler has rejected every candidate. If a node is assigned and the pod is still Pending, the delay is on that node, usually pulling the image.

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.
  • nodeSelector or 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".

bash
# 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 pvc

Fixes

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.

Frequently asked questions

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.

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.