A StatefulSet Pod `db-2` is Pending with `1 node(s) had volume node affinity conflict` after a node replacement.
IntermediateTroubleshootingScheduling and Pending Pods
Answer
Likely causes → Its PV is a zonal disk (EBS, PD) pinned to us-east-1a through PV nodeAffinity, and there is no schedulable node in that zone (node group shrank, zone has no capacity, or the Pod's own constraints exclude that zone's nodes).
Diagnose →
kubectl get pv $(kubectl get pvc data-db-2 -o jsonpath='{.spec.volumeName}') -o jsonpath='{.spec.nodeAffinity}' | jq
kubectl get nodes -L topology.kubernetes.io/zone
Fix → Add capacity in that zone (per-AZ node groups, or Karpenter with subnets in all zones). Do not delete the PVC unless you accept data loss; restore from a snapshot into another zone if the zone is gone.
Prevent → Per-AZ node groups for stateful pools, WaitForFirstConsumer binding, and replication at the application layer across zones.
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