Pods are Pending with `node(s) didn't match pod topology spread constraints` even though one zone has lots of free capacity.
IntermediateTroubleshootingScheduling and Pending Pods
Answer
Likely causes → whenUnsatisfiable: DoNotSchedule with maxSkew: 1 across zones. If one zone has no room (or no nodes for this pool), placing more Pods in the other zones would exceed the skew, so they stay Pending.
Diagnose →
kubectl get pods -l app=web -o wide --no-headers | awk '{print $7}' | xargs -I{} kubectl get node {} -L topology.kubernetes.io/zone --no-headers | awk '{print $NF}' | sort | uniq -c
kubectl get nodes -L topology.kubernetes.io/zone
Fix → Add capacity in the starved zone (node group per AZ for Cluster Autoscaler), or relax to ScheduleAnyway, or raise maxSkew. Note that minDomains can force the scheduler to treat missing zones as having zero Pods.
Prevent → One autoscaling group per AZ (or Karpenter) so capacity can be added where the constraint needs it.
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