Some Pods are Pending in only one namespace while identical Pods schedule fine elsewhere.
AdvancedTroubleshootingScheduling and Pending Pods
Answer
Likely causes → Something namespace-scoped changes the Pod spec: a LimitRange injecting large default requests, a mutating webhook adding a nodeSelector or toleration, a Kyverno mutate rule, or a PodNodeSelector-style namespace annotation (scheduler.alpha.kubernetes.io/node-selector).
Diagnose →
kubectl get limitrange -n team-a -o yaml
kubectl get ns team-a -o jsonpath='{.metadata.annotations}'
# Compare the stored Pod spec with the template
kubectl get pod web-x -n team-a -o yaml | yq '.spec.nodeSelector, .spec.containers[].resources, .spec.tolerations'
kubectl get mutatingwebhookconfigurations
Fix → Fix the LimitRange defaults or the mutation rule so it produces schedulable Pods.
Prevent → Always compare the running Pod spec with the template when debugging; mutations are invisible in Git.
More on Scheduling and Pending Pods
Pods are Pending with `0/5 nodes are available: 5 Insufficient cpu. preemption: 0/5 nodes are available: 5 No preemption victims found for incoming pod.`Beginner`kubectl top nodes` shows nodes at 20% CPU, yet new Pods fail with `Insufficient cpu`. Explain it to a developer.Beginner`0/4 nodes are available: 1 node(s) had untolerated taint {node-role.kubernetes.io/control-plane: }, 3 node(s) had untolerated taint {dedicated: gpu}`.BeginnerA StatefulSet Pod is Pending with `pod has unbound immediate PersistentVolumeClaims`.Beginner`0/3 nodes are available: 3 node(s) didn't match Pod's node affinity/selector.`BeginnerA 6-replica Deployment has 3 Pods Running and 3 Pending: `0/3 nodes are available: 3 node(s) didn't match pod anti-affinity rules`.Intermediate