# How to debug a Pod stuck in Pending in Kubernetes

> Read the scheduler's FailedScheduling message, decode each reason from resources to taints, volumes and topology spread, and find Pods that never got created.

Published: 2026-11-26
Author: k8wiz Team
URL: https://k8wiz.com/articles/debug-pod-stuck-in-pending-kubernetes

A Pod in `Pending` has been accepted by the API server but has not started on any node. Most of the time that means kube-scheduler looked at every node and rejected all of them, and it wrote down exactly why. The rest of the time the scheduler is not involved at all, because the Pod is waiting on a scheduling gate or was never created.

This guide shows where the scheduler's explanation lives, how to read its format, and what each common reason means in practice. The message strings quoted here come from the kube-scheduler source on the `release-1.37` branch of kubernetes/kubernetes, so they match what a current cluster prints.

## Step 1: confirm the Pod is waiting for a node

Start with `kubectl get pod -o wide`. A Pod that has not been scheduled shows `Pending` with `<none>` in the `NODE` column. If a node is listed, the scheduler already did its job and the delay is on the kubelet side, such as an image pull or a volume mount, which is a different investigation.

```bash
kubectl get pod web-6f7d9c8b5-k2x9p -n shop -o wide
```

A `STATUS` of `SchedulingGated` instead of `Pending` means the scheduler is deliberately ignoring the Pod. Skip ahead to the section on scheduling gates for that case.

## Step 2: read the FailedScheduling event

Every time a scheduling attempt fails, kube-scheduler records a `Warning` event with reason `FailedScheduling` on the Pod. It also sets the Pod's `PodScheduled` condition to `False` with reason `Unschedulable` and the same text as the message. `kubectl describe` shows the event at the bottom.

```bash
kubectl describe pod web-6f7d9c8b5-k2x9p -n shop
```

```text
Events:
  Type     Reason            Age   From               Message
  ----     ------            ----  ----               -------
  Warning  FailedScheduling  41s   default-scheduler  0/5 nodes are available: 1 node(s) had untolerated taint(s), 4 Insufficient memory. preemption: 0/5 nodes are available: 1 Preemption is not helpful for scheduling, 4 No preemption victims found for incoming pod.
```

Events expire, by default after an hour, so on an old Pod the condition is the more reliable source.

```bash
kubectl get pod web-6f7d9c8b5-k2x9p -n shop \
  -o jsonpath='{.status.conditions[?(@.type=="PodScheduled")].message}'
```

To see every scheduling failure in a namespace at once, filter events by reason.

```bash
kubectl get events -n shop --field-selector reason=FailedScheduling
```

## Step 3: understand the message format

The message is built by the scheduler's `FitError` type and always starts with `0/N nodes are available:`, where N is the number of nodes the scheduler considered. After that comes a histogram. For each reason, the scheduler counts how many nodes rejected the Pod for it, then sorts the `count reason` strings and joins them with commas.

Two details trip people up. A node can fail for several reasons at once, for example both `Insufficient cpu` and `Insufficient memory`, so the counts can add up to more than N. And the list is sorted as plain strings, so the order tells you nothing about importance.

The part after `preemption:` is the result of the PostFilter step. When no node fits, the default preemption plugin checks whether evicting lower-priority Pods would make room, and it reports its own histogram. `No preemption victims found for incoming pod` means a node could work in principle, but no Pod on it has a lower priority. `Preemption is not helpful for scheduling` means removing Pods would not change the outcome on that node, because the failure was something like a taint or a label mismatch.

If a plugin rejects the Pod during PreFilter, before any node is checked, the histogram is replaced by that plugin's message with no per-node counts. You will see this with unbound PVCs below.

## Insufficient cpu, memory and Too many pods

`Insufficient cpu`, `Insufficient memory` and `Insufficient ephemeral-storage` come from the NodeResourcesFit plugin. Extended resources such as GPUs use the same pattern, `Insufficient <resource name>`, for example `Insufficient nvidia.com/gpu`. The check compares the Pod's requests with the node's allocatable capacity minus the requests of Pods already on it. Actual usage plays no part, which is why a node at 10% CPU can still reject a Pod.

```bash
kubectl describe node worker-2 | grep -A 8 'Allocated resources'
```

The `Allocated resources` block lists the summed requests and limits as a percentage of allocatable. If requests are near 100% while real usage is low, the fix is usually lowering oversized requests on existing workloads, not adding nodes. `Too many pods` means the node has reached its Pod limit, set by the kubelet's `maxPods`.

When a single Pod requests more than a node's total allocatable, the plugin marks that rejection as unresolvable, and preemption reports `Preemption is not helpful for scheduling` for that node. No amount of eviction will fit a 64-CPU request on a 16-CPU node, so check the request for a typo such as `64` where `64m` was meant.

## node(s) had untolerated taint(s)

The TaintToleration plugin rejects any node with a `NoSchedule` or `NoExecute` taint that the Pod does not tolerate. On release-1.37 the event text does not name the taint, so list the taints yourself and compare them with the Pod's tolerations.

```bash
kubectl get nodes -o custom-columns='NAME:.metadata.name,TAINTS:.spec.taints[*].key'
kubectl get pod web-6f7d9c8b5-k2x9p -n shop -o jsonpath='{.spec.tolerations}'
```

Two cases come up constantly. Control plane nodes carry `node-role.kubernetes.io/control-plane`, and nodes that are not ready get `node.kubernetes.io/not-ready` from the node controller. A sudden jump in this count often means nodes went `NotReady`, not that someone changed a taint. A cordoned node shows up separately as `node(s) were unschedulable`.

## node(s) didn't match Pod's node affinity/selector

This NodeAffinity message covers both `spec.nodeSelector` and `requiredDuringSchedulingIgnoredDuringExecution` node affinity. Print the Pod's selector, then the matching labels on the nodes, and look for a misspelled key or a value that no node carries.

```bash
kubectl get pod web-6f7d9c8b5-k2x9p -n shop -o jsonpath='{.spec.nodeSelector}{"\n"}{.spec.affinity.nodeAffinity}'
kubectl get nodes -L topology.kubernetes.io/zone,node.kubernetes.io/instance-type
```

Remember that terms inside `nodeSelectorTerms` are ORed while the expressions within one term are ANDed. A Pod with a `nodeSelector` and a node affinity rule must satisfy both.

## Volume messages

Volume problems produce several different messages, and each points somewhere else. Check the PVCs first.

```bash
kubectl get pvc -n shop
kubectl describe pvc data-web-0 -n shop
```

`pod has unbound immediate PersistentVolumeClaims` comes from the VolumeBinding plugin's PreFilter. The PVC uses a StorageClass with `volumeBindingMode: Immediate`, or no StorageClass, and it is still `Pending`. The scheduler will not touch the Pod until the PV controller binds the claim, so the real error is in the PVC's events. A common one is `no persistent volumes available for this claim and no storage class is set`.

With `WaitForFirstConsumer`, a `Pending` PVC with the event `waiting for first consumer to be created before binding` is normal. Binding happens after the scheduler picks a node, and these messages appear when it can't.

```text
node(s) didn't find available persistent volumes to bind
node(s) didn't match PersistentVolume's node affinity
node(s) did not have enough free storage
node(s) had no available volume zone
```

The first means no existing PV matches the claim for that node. The second means the PV, or the PV the claim is already bound to, has `nodeAffinity` that excludes the node, typical for local volumes and zonal cloud disks. The VolumeZone plugin reports the fourth when a bound PV's `topology.kubernetes.io/zone` label does not match the node's zone. The usual story is a StatefulSet whose disk lives in one zone while every node left in that zone is full or gone. Look at the PV's labels and node affinity.

```bash
kubectl get pv $(kubectl get pvc data-web-0 -n shop -o jsonpath='{.spec.volumeName}') \
  -o jsonpath='{.metadata.labels}{"\n"}{.spec.nodeAffinity}'
```

## node(s) didn't match pod topology spread constraints

PodTopologySpread rejects a node when placing the Pod there would push the skew in a domain past `maxSkew`, for constraints with `whenUnsatisfiable: DoNotSchedule`. The scheduler counts only Pods matching the constraint's `labelSelector`, so a selector that matches more or fewer Pods than you expect changes the math.

If the message ends in `(missing required label)`, the node does not have the label named in `topologyKey` at all. The scheduler rejects such a node outright, which often happens when a new node pool was created without zone or rack labels.

```bash
kubectl get pod web-6f7d9c8b5-k2x9p -n shop -o jsonpath='{.spec.topologySpreadConstraints}'
kubectl get pods -n shop -l app=web -o wide
```

Compare where the matching Pods run against the zones that still have room. When one zone has no capacity left, a strict spread also blocks the other zones as soon as they get `maxSkew` Pods ahead of it. Setting `whenUnsatisfiable: ScheduleAnyway` turns the rule into a scoring preference.

## Pods that were never created

Sometimes `kubectl get pods` shows fewer Pods than the Deployment wants and none of them are even `Pending`. Admission rejected the Pods, so there is nothing for the scheduler to schedule. ResourceQuota is the most common cause. The error goes to the controller that tried to create the Pod, which for a Deployment is its ReplicaSet.

```bash
kubectl describe rs -n shop -l app=web
```

```text
Warning  FailedCreate  12s  replicaset-controller  Error creating: pods "web-6f7d9c8b5-" is forbidden: exceeded quota: compute, requested: requests.cpu=500m, used: requests.cpu=3800m, limited: requests.cpu=4
```

The Pod name in that message is the `generateName` prefix, since the Pod never got a real name. A quota that covers `requests.cpu` or `limits.memory` also rejects Pods that do not set those fields, with a message starting `failed quota: <name>: must specify`. Compare usage with the hard limits using `kubectl describe resourcequota -n shop`, then raise the quota, free up usage, or add a LimitRange that supplies defaults.

## Pods held by scheduling gates

A Pod created with entries in `spec.schedulingGates` shows `SchedulingGated` in `kubectl get pods`. The API server sets its `PodScheduled` condition to `False` with reason `SchedulingGated` and the message `Scheduling is blocked due to non-empty scheduling gates`. The scheduler does not try to place it and emits no FailedScheduling events.

```bash
kubectl get pod batch-job-7xk2p -n shop -o jsonpath='{.spec.schedulingGates}'
```

Gates are normally removed by the controller that added them, such as a queueing system waiting for quota. Find that controller and ask why it hasn't released the Pod. Gates can only be removed after creation, never added. To release a Pod by hand, remove the field.

```bash
kubectl patch pod batch-job-7xk2p -n shop --type=json \
  -p='[{"op":"remove","path":"/spec/schedulingGates"}]'
```

Once the list is empty, the Pod enters the normal scheduling queue, and from then on any failure appears as a FailedScheduling event like the ones above.
