Pods are Pending and the Cluster Autoscaler log says `pod didn't trigger scale-up: 2 max node group size reached, 1 node(s) didn't match Pod's node affinity`.
IntermediateTroubleshootingScheduling and Pending Pods
Answer
Likely causes → The node groups that could fit the Pod are at their maximum, and the others cannot satisfy its constraints (affinity, taints, zone, instance size).
Diagnose →
kubectl describe pod web-x | grep -A3 TriggeredScaleUp\|NotTriggerScaleUp
kubectl -n kube-system logs deploy/cluster-autoscaler | grep -i 'web-x'
kubectl -n kube-system get cm cluster-autoscaler-status -o yaml
Fix → Raise the max size of the matching ASG, or add a node group whose labels/taints/instance size fit the Pod.
Prevent → Alert on node groups at max; keep node group templates (labels/taints) in sync with workload selectors.
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