Kubernetes / Editorial solution guide

Investigate a Pod pending on topology spread

Trace selectors, eligible domains and other scheduling constraints before adjusting Pod spread rules.

About 3 min readContent reviewed

Read-only knowledge base ยท No public comments

Recognize the symptoms

A fictional Deployment expects another replica, but its new Pod remains Pending. Scheduler events mention a topology spread constraint. Existing replicas are concentrated in one zone, while another zone appears available in an inventory.

Understand the likely causes

  • A hard spread rule can reject placements that exceed its permitted skew. Missing node labels, selector mismatch, taints, affinity, resource requests or volume requirements can also affect eligibility; an inventory count alone does not establish a schedulable node.

Capture the exact workload

Record the cluster, namespace, Pod identity, creation time and scheduler events in a restricted investigation. Preserve the Podโ€™s labels, topology key, selector, maxSkew and whenUnsatisfiable value. Compare them with the Deployment template and intended failure domains. Do not change node labels or relax constraints before identifying the cause.

Compute matching counts

For the exact selector, count matching Pods in each eligible domain using the documented rules for the installed version. Check that the incoming Pod matches its own selector and that relevant nodes carry the topology label. A Pod that does not match the selector may not count itself as intended. Note any minimum-domain setting and other inclusion policies before calculating skew.

Inspect other feasibility constraints

Compare node readiness and allocatable resources with Pod requests, affinity, taints and tolerations, and volume placement. An apparently empty zone is not necessarily eligible or large enough to run the Pod. Read all scheduler events and distinguish the hard spread constraint from independent blockers. Do not conclude that increasing maxSkew alone will make a node fit.

Propose a bounded correction

If a label or selector is wrong, propose the smallest reviewed correction in an isolated lab. If the configuration is intentional, compare the trade-off between a pending replica and concentration in fewer failure domains with the workload owner. A softer scheduling preference changes availability behavior and requires a deliberate decision, not an automatic incident shortcut.

Verify the fix

In an authorized lab, reproduce the same labels, domain counts and relevant constraints with synthetic Pods. Confirm the expected placement after the correction and test a missing-domain case. Record scheduler evidence and the exact assumptions.

Verify application readiness and surviving capacity separately. A Pod scheduled once does not prove the service meets its failure or recovery objective. Escalate if observed counts or events contradict the calculation.

Keep it from recurring

  • Maintain consistent topology labels and document selector ownership, eligible domains and capacity assumptions. Exercise failure-domain and scale-down scenarios periodically, and review scheduler changes against the supported cluster version.

Official references