,

Pending Pods: A Scheduler Diagnosis Checklist

Posted by

–

Kubernetes Pending Pods troubleshooting infographic showing a scheduler diagnosis checklist for cluster capacity, node health, resource requests, node selectors, taints, tolerations, and persistent storage.

Introduction

A Kubernetes Pod can remain in Pending for several different reasons. Sometimes the scheduler cannot find a suitable node. In other cases, the scheduler has already selected a node, but the Pod is waiting for storage, container images or runtime setup.

These situations need different troubleshooting steps.

The first task is to identify whether the Pod is actually waiting for scheduling. Do not immediately reduce CPU requests, remove node taints or restart cluster components.

Start with kubectl describe pod. Read the scheduling events and check the PodScheduled condition. These two checks help identify where the deployment process is blocked.

This guide provides a practical scheduler diagnosis checklist. It covers resource shortages, node constraints, taints, affinity, storage binding, scheduling gates and custom schedulers. It also explains which problems happen after scheduling and should not be mistaken for scheduler failures.

What Does Pending Mean in Kubernetes?

Pending is a Pod lifecycle phase. It means Kubernetes has accepted the Pod, but one or more containers have not been fully set up and made ready to run.

This phase includes time spent waiting for a node and time spent downloading container images.

Therefore, seeing Pending does not automatically mean that kube-scheduler has failed.

Start by checking the Pod conditions.

ObservationWhat it indicatesWhere to investigate
PodScheduled=FalseThe Pod has not been assigned to a nodeScheduler events and scheduling constraints
PodScheduled=TrueThe scheduler has assigned the PodKubelet, storage, container runtime and networking
spec.nodeName is emptyNo node is assignedScheduling or scheduling gates
spec.nodeName contains a nodeA node has been selectedNode-level startup issues
SchedulingGatedThe Pod is waiting for scheduling gates to be removedThe component responsible for those gates

The Kubernetes Pod lifecycle documentation explains that a Pod can remain in the Pending phase while images download. The PodScheduled condition provides a better way to distinguish scheduling from later startup work.

Official reference: Kubernetes Pod Lifecycle.

Step 1: Capture the Pod’s Current State

Start with the affected namespace and Pod name.

NS=default
POD=my-app-7c8f9d7b6f-abcdeCode language: JavaScript (javascript)

Replace these example values with your actual Pod details.

Check the Pod:

kubectl get pod "$POD" -n "$NS" -o wideCode language: PHP (php)

Inspect its complete description:

kubectl describe pod "$POD" -n "$NS"Code language: JavaScript (javascript)

Review the Pod conditions:

kubectl get pod "$POD" -n "$NS" -o jsonpath='{range .status.conditions[*]}{.type}={.status}{" reason="}{.reason}{" message="}{.message}{"\n"}{end}'Code language: JavaScript (javascript)

Check its scheduler, assigned node and scheduling gates:

kubectl get pod "$POD" -n "$NS" -o jsonpath='scheduler={.spec.schedulerName}{"\n"}node={.spec.nodeName}{"\n"}gates={.spec.schedulingGates}{"\n"}'Code language: JavaScript (javascript)

Finally, inspect recent namespace events:

kubectl get events -n "$NS" --sort-by='.metadata.creationTimestamp'Code language: PHP (php)

What are you looking for?

Pay particular attention to:

  • FailedScheduling
  • Scheduled
  • Insufficient cpu
  • Insufficient memory
  • untolerated taint
  • node(s) didn't match Pod's node affinity
  • unbound immediate PersistentVolumeClaims
  • Too many pods

The event message usually provides a more useful starting point than the displayed Pending status.

Step 2: Understand How the Kubernetes Scheduler Works

The default Kubernetes scheduler selects a suitable node for each Pod that needs scheduling.

Its main decision process has two important stages.

Filtering

The scheduler checks which nodes satisfy the Pod’s requirements.

It evaluates factors such as:

  • Available resources
  • Node selectors
  • Node affinity
  • Pod affinity and anti-affinity
  • Taints and tolerations
  • Persistent storage constraints
  • Pod topology spread requirements

Nodes that fail required constraints are removed from consideration.

Scoring

The scheduler ranks the nodes that pass filtering.

It uses configured scheduling rules to decide which suitable node is the best placement.

The highest-scoring feasible node is selected, and the Pod is bound to it.

The important diagnostic distinction is this:

Filtering determines whether a node is suitable. Scoring helps choose among suitable nodes.

If no node passes filtering, the Pod remains unscheduled. Changing a scoring preference will not solve a hard scheduling restriction.

References: Kubernetes Scheduler and Scheduling Framework.

Step 3: Check Whether Nodes Are Ready and Schedulable

A Pod cannot be scheduled when no available node satisfies its requirements.

List the nodes:

kubectl get nodesCode language: JavaScript (javascript)

Inspect a particular node:

kubectl describe node <node-name>Code language: HTML, XML (xml)

Check the node conditions, taints, allocatable resources and scheduling status.

Look for:

  • Ready=False
  • Ready=Unknown
  • SchedulingDisabled
  • MemoryPressure
  • DiskPressure
  • PIDPressure
  • node.kubernetes.io/unschedulable

A cordoned node is marked unschedulable. The scheduler will not place ordinary new Pods on it.

You can inspect all node labels with:

kubectl get nodes --show-labelsCode language: JavaScript (javascript)

You can also check which Pods already occupy the nodes:

kubectl get pods -A -o wideCode language: JavaScript (javascript)

How to Fix This Problem

Do not uncordon every node automatically.

First confirm why the node was marked unschedulable.

If maintenance has finished and the node is healthy, an authorised administrator can make it schedulable again:

kubectl uncordon <node-name>Code language: HTML, XML (xml)

If a node is genuinely unhealthy, investigate the underlying node or cloud infrastructure problem instead.

Step 4: Check CPU and Memory Requests

Insufficient resources are among the most common reasons for FailedScheduling.

A typical event may look like this:

Warning  FailedScheduling
0/4 nodes are available: 4 Insufficient cpu

This means the scheduler could not find a suitable node with enough CPU capacity for the Pod’s effective request.

Inspect the Pod’s resources:

kubectl get pod "$POD" -n "$NS" -o yamlCode language: PHP (php)

Look for:

resources:
  requests:
    cpu: "500m"
    memory: "512Mi"
  limits:
    cpu: "1"
    memory: "1Gi"Code language: JavaScript (javascript)

In this example:

  • 500m means half a CPU core.
  • 512Mi means 512 mebibytes of memory.
  • 1 CPU means one CPU core.

Next, inspect node capacity and allocated resources:

kubectl describe node <node-name>Code language: HTML, XML (xml)

Pay attention to these sections:

  • Capacity
  • Allocatable
  • Allocated resources

The scheduler uses resource requests for placement decisions. It does not simply look at the live CPU or memory usage displayed by a monitoring dashboard.

For example, a node might appear to have low CPU usage while its requested CPU capacity is already committed to existing Pods.

The scheduler can reject another Pod even when the CPU graph appears mostly idle.

Check Effective Pod Requests

Do not inspect only the main application containers.

Init containers, sidecars and Pod overhead can affect the effective request used for scheduling.

For some Pods, the effective request is not simply the total of every container request. Kubernetes calculates the requirements across initialization and normal execution phases.

Reference: Effective Pod Requests and Limits.

How to Fix Resource Problems

Consider these options:

  1. Review whether the application’s resource requests reflect measured needs.
  2. Remove unnecessary workloads from the relevant node pool.
  3. Add suitable nodes when cluster capacity is insufficient.
  4. Adjust resource requests only when testing supports the change.
  5. Check whether a Pod requests more resources than any available node can provide.

Do not reduce memory requests simply to force a Pod onto a node. That can create memory pressure and operational instability.

Also inspect ephemeral-storage and extended resources such as GPUs when the event mentions them.

Step 5: Inspect Node Taints and Pod Tolerations

Kubernetes uses taints to prevent unsuitable Pods from scheduling onto certain nodes.

For example, a node may have this taint:

dedicated=gpu:NoSchedule

A Pod without a matching toleration cannot normally be scheduled onto that node.

Inspect the node:

kubectl describe node <node-name>Code language: HTML, XML (xml)

Find the Taints section.

Inspect the Pod:

kubectl get pod "$POD" -n "$NS" -o yamlCode language: PHP (php)

Review its tolerations.

A matching toleration could look like this:

tolerations:
  - key: "dedicated"
    operator: "Equal"
    value: "gpu"
    effect: "NoSchedule"Code language: JavaScript (javascript)

A toleration allows the Pod to tolerate a matching taint. It does not guarantee that the Pod will be placed on that node.

The Pod must still satisfy the other scheduling requirements.

Understand the Common Taint Effects

EffectScheduling behaviour
NoScheduleDoes not allow new non-tolerating Pods to schedule
PreferNoScheduleTries to avoid the node when possible
NoExecuteCan prevent scheduling and evict non-tolerating Pods already running

Do not remove a security or workload-isolation taint just to make one Pod run.

First confirm the intended node-pool design.

Reference: Kubernetes Taints and Tolerations.

Step 6: Verify Node Selectors and Node Affinity

Node selectors and node affinity restrict where a Pod can run.

For example:

nodeSelector:
  disktype: ssd

This Pod requires a node with the label:

disktype=ssd

Check whether the expected label exists:

kubectl get nodes --show-labelsCode language: JavaScript (javascript)

If no node has the correct label, the Pod cannot satisfy this requirement.

Check Required Node Affinity

A required node affinity rule is a hard scheduling requirement.

Example:

affinity:
  nodeAffinity:
    requiredDuringSchedulingIgnoredDuringExecution:
      nodeSelectorTerms:
        - matchExpressions:
            - key: environment
              operator: In
              values:
                - production

The Pod needs a matching node.

If the cluster uses the label environment=staging, this rule will not match.

Required Versus Preferred Affinity

RuleBehaviour
requiredDuringSchedulingIgnoredDuringExecutionRequired for scheduling
preferredDuringSchedulingIgnoredDuringExecutionUsed as a scheduling preference

A preferred rule alone should not normally make a Pod impossible to schedule.

Inspect the complete Pod specification before editing its affinity rules.

Reference: Assigning Pods to Nodes.

Step 7: Check Pod Affinity, Anti-Affinity and Topology Spread

Some applications require Pods to run near other workloads.

Others require replicas to remain separated across nodes or availability zones.

Kubernetes supports these requirements through:

  • Pod affinity
  • Pod anti-affinity
  • Topology spread constraints

A required Pod anti-affinity rule can prevent scheduling when every suitable node already hosts a matching Pod.

For example, a workload may require one replica per node.

If all eligible nodes already have a matching replica, another Pod may remain unscheduled.

Topology spread constraints can also create scheduling restrictions.

Consider:

topologySpreadConstraints:
  - maxSkew: 1
    topologyKey: topology.kubernetes.io/zone
    whenUnsatisfiable: DoNotSchedule
    labelSelector:
      matchLabels:
        app: web

This rule requires the matching Pods to remain balanced across eligible zones.

If the distribution would violatmaxSkew, the scheduler cannot place the incoming Pod under this hard constraint.

What to Inspect

  • Are all required topology labels present?
  • Does the label selector match the intended Pods?
  • Is the namespace correct?
  • Is the topologyKey valid?
  • Is maxSkew too restrictive for the current cluster?
  • Does DoNotSchedule prevent the available placement?

Changing DoNotSchedule to ScheduleAnyway changes the placement guarantee. Do this only after understanding the availability trade-off.

References: Pod Topology Spread Constraints and Assigning Pods to Nodes.

Step 8: Investigate PersistentVolumeClaim Problems

Storage can affect Pod scheduling.

A common event is:

pod has unbound immediate PersistentVolumeClaims

Start by checking the claims:

kubectl get pvc -n "$NS"Code language: JavaScript (javascript)

Inspect a specific claim:

kubectl describe pvc <pvc-name> -n "$NS"Code language: HTML, XML (xml)

Check available PersistentVolumes:

kubectl get pvCode language: JavaScript (javascript)

Review the StorageClass:

kubectl get storageclassCode language: JavaScript (javascript)

Look for:

  • PVC in Pending
  • Missing StorageClass
  • Incorrect storage class name
  • Insufficient storage capacity
  • Volume access mode mismatch
  • PV node affinity restrictions
  • Provisioner errors

Understand WaitForFirstConsumer

A Pending PVC is not always a storage failure.

Some StorageClasses use:

volumeBindingMode: WaitForFirstConsumerCode language: HTTP (http)

This delays volume provisioning and binding until a Pod using the claim is scheduled.

Kubernetes then considers the storage and node placement together.

In this situation, the PVC may remain Pending while the scheduler evaluates the Pod’s placement.

Do not force-bind the claim or delete storage resources before checking the StorageClass behaviour.

Reference: StorageClass API.

Step 9: Check Scheduling Gates

A Pod may remain outside normal scheduling because it has scheduling gates.

Inspect them:

kubectl get pod "$POD" -n "$NS" -o jsonpath='{.spec.schedulingGates}'Code language: PHP (php)

A scheduling gate is an explicit condition that must be removed before the Pod becomes eligible for scheduling.

This feature allows another component to control when a Pod is ready for scheduling.

For example, a workload controller may create several Pods and remove their gates only after a preparation step is complete.

How to Fix This Problem

Find the component responsible for the scheduling gate.

Check whether its prerequisite has completed.

Do not simply remove all scheduling gates without understanding why they exist.

Reference: Pod Scheduling Readiness.

Step 10: Verify the Scheduler Name

Kubernetes normally uses the default-scheduler.

However, a Pod can request a different scheduler through:

spec:
  schedulerName: custom-scheduler

If the specified scheduler is not running or is not configured to handle the Pod, it may remain Pending.

Check the scheduler name:

kubectl get pod "$POD" -n "$NS" -o jsonpath='{.spec.schedulerName}{"\n"}'Code language: JavaScript (javascript)

If the result is default-scheduler, inspect the default scheduler.

If it shows a custom name, confirm:

  • The scheduler process is running.
  • Its configuration includes the required profile.
  • Its scheduler name matches the Pod specification.
  • It watches the correct cluster resources.
  • Its scheduling events and logs show activity.

Do not replace a custom scheduler name with default-scheduler unless the workload is intended to use that scheduler.

References: Running Multiple Schedulers and Configure Multiple Schedulers.

Step 11: Review Priority and Preemption

Kubernetes supports Pod priority.

When a higher-priority Pod cannot be scheduled, the scheduler may try to preempt lower-priority Pods to create room.

Inspect the Pod:

kubectl get pod "$POD" -n "$NS" -o yamlCode language: PHP (php)

Look for:

priorityClassName: production-criticalCode language: HTTP (http)

Check available PriorityClasses:

kubectl get priorityclassCode language: JavaScript (javascript)

Preemption is not guaranteed to solve every scheduling problem.

For example, evicting a lower-priority Pod does not automatically fix a node selector mismatch, an incompatible GPU requirement or every storage constraint.

Increasing priority without a workload design reason can also disrupt other services.

Reference: Pod Priority and Preemption.

Step 12: Distinguish Scheduler Failures From Later Startup Problems

This distinction prevents wasted troubleshooting work.

A Pod can remain in the Pending lifecycle phase even after it has been assigned to a node.

Check:

kubectl get pod "$POD" -n "$NS" -o wideCode language: PHP (php)

If a node is assigned and PodScheduled=True, investigate the startup process.

Event or symptomLikely area to investigate
ErrImagePullImage name, registry or authentication
ImagePullBackOffImage retrieval and registry access
FailedMountVolume and storage mounting
FailedCreatePodSandBoxContainer runtime or CNI networking setup
Init container failureInit container command, dependencies or mounted files
Container stuck in ContainerCreatingImage, volume, sandbox or runtime setup

These are not all scheduler filter failures.

DNS problems generally occur when a container or application tries to resolve a name. They are not a reason to change node affinity or resource requests.

Also distinguish ResourceQuota failures from scheduling failures.

When a new resource violates a namespace quota, the API server rejects the request with 403 Forbidden. In a Deployment, this may appear as a ReplicaSet failing to create the requested Pod rather than an existing Pod failing scheduler placement.

References: Pod Conditions and Resource Quotas.

A Practical Scheduler Event Diagnosis Table

Use the following table when reading kubectl describe pod.

Event messageLikely causeFirst check
Insufficient cpuCPU requests exceed available allocatable capacityNode allocated resources
Insufficient memoryMemory request cannot fitNode memory allocation
Insufficient ephemeral-storageStorage request cannot fitNode allocatable ephemeral storage
Too many podsNode Pod limit reachedNode allocatable Pod count
untolerated taintMissing or incorrect tolerationNode taints and Pod tolerations
didn't match node selectorRequired node label is missingNode labels and nodeSelector
didn't match Pod's node affinityRequired affinity does not matchAffinity expressions
pod has unbound immediate PersistentVolumeClaimsImmediate volume binding is incompletePVC and StorageClass
didn't match pod topology spread constraintsHard topology constraint prevents placementTopology labels and maxSkew
No scheduler event with a named schedulerCustom scheduler may not be processing the PodschedulerName and scheduler health

A single event can report several reasons because different nodes may fail different scheduling requirements.

For example:

0/4 nodes are available:
2 Insufficient cpu,
1 node(s) had untolerated taint,
1 node(s) didn't match Pod's node affinityCode language: JavaScript (javascript)

This does not mean that one node has all three problems.

It means the candidate nodes were rejected for different reasons. Inspect each node and the Pod specification before choosing a fix.

A Reusable Kubernetes Pending Pod Checklist

Use this checklist during an incident or deployment investigation.

Pod State

  • Confirm namespace and Pod name.
  • Run kubectl describe pod.
  • Inspect the PodScheduled condition.
  • Check whether spec.nodeName is populated.
  • Review recent Pod events.

Node Health

  • Confirm that eligible nodes are Ready.
  • Check whether nodes are cordoned.
  • Inspect node taints.
  • Review node allocatable capacity.
  • Check the maximum Pod count.

Scheduling Requirements

  • Review CPU and memory requests.
  • Review ephemeral-storage and extended resource requests.
  • Inspect node selectors.
  • Inspect required node affinity.
  • Inspect Pod affinity and anti-affinity.
  • Review topology spread constraints.
  • Check toleration matching.

Storage

  • Check PersistentVolumeClaim status.
  • Inspect available PersistentVolumes.
  • Confirm the StorageClass.
  • Review volume binding mode.
  • Check volume topology requirements.

Scheduler Configuration

  • Check schedulerName.
  • Inspect scheduling gates.
  • Verify custom scheduler health when applicable.
  • Review PriorityClass and preemption events.

After Scheduling

  • Confirm PodScheduled=True.
  • Check image-pulling events.
  • Review volume-mount failures.
  • Inspect sandbox and CNI setup.
  • Review init container status.
  • Inspect kubelet and runtime logs when needed.

Advanced Investigation: Check Scheduler Logs

If the Pod remains unscheduled but events do not explain the situation, inspect the scheduler itself.

In a self-managed cluster, scheduler logs may be available through the control-plane node or the scheduler Pod, depending on how the cluster was installed.

For example:

kubectl get pods -n kube-system | grep schedulerCode language: JavaScript (javascript)

If the scheduler is deployed as a Pod:

kubectl logs -n kube-system <scheduler-pod-name>Code language: HTML, XML (xml)

On a systemd-based control-plane host, administrators may also inspect:

journalctl -u kube-scheduler

The exact location depends on the installation and distribution.

For managed Kubernetes, use the cloud provider’s control-plane logging and diagnostic tools. You may not have direct access to scheduler logs.

Kubernetes provides a general guide to investigating control-plane components:

Official Kubernetes Cluster Troubleshooting.

Common Troubleshooting Mistakes

Reducing resource requests without measuring application needs: This may make a Pod schedulable but can increase resource pressure later.

Removing node taints without checking their purpose: Taints often protect dedicated or specialised node pools.

Adding broad tolerations: A wildcard toleration can allow workloads onto nodes that should remain isolated.

Changing affinity rules without checking labels: A label mismatch may be the real problem.

Deleting PVCs to clear Pending: This can cause data loss or remove the storage object needed by the workload.

Restarting the scheduler before reading events: A component restart may hide symptoms without fixing the underlying constraint.

Treating every Pending Pod as a scheduling failure: A scheduled Pod may still be downloading images or waiting for storage and runtime setup.

The most reliable approach is to change one justified setting at a time and then verify the result.

Final Thoughts

A Pending Pod is a symptom, not a complete diagnosis.

Start with the PodScheduled condition, inspect the scheduler events and determine whether a node has already been assigned.

Then work through resource requests, taints, node affinity, Pod placement rules, storage and scheduler configuration.

If the scheduler has already assigned the Pod, move to node-level startup troubleshooting instead.

This simple distinction saves time and prevents unnecessary changes to a working Kubernetes cluster.

A good scheduler diagnosis is based on evidence from the Pod, its events, the node and the workload specification—not on guesses.

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x