Interview Prep/Kubernetes/Scheduling and Pending Pods

Karpenter does not launch nodes and logs `could not schedule pod, incompatible with nodepool "default", ... no instance type satisfied resources {"cpu":"12","memory":"64Gi"} and requirements`.

AdvancedTroubleshootingScheduling and Pending Pods
Answer

Likely causes → The NodePool requirements (instance families, sizes, capacity type, zones, arch) exclude every instance type that fits the Pod, or NodePool limits are already reached.

Diagnose →

kubectl get nodepool default -o yaml | yq '.spec.template.spec.requirements, .spec.limits'
kubectl get nodeclaims
kubectl logs -n kube-system -l app.kubernetes.io/name=karpenter --tail=200 | grep -i incompatible

Fix → Widen requirements (e.g. allow karpenter.k8s.aws/instance-size up to 4xlarge, add instance families), raise limits.cpu, or reduce the Pod's requests. Check that the EC2NodeClass subnets cover the zone the Pod needs (PV zone affinity).

Prevent → Keep NodePools broad (many families, both arches if images are multi-arch) and alert on Karpenter incompatible events.

All Kubernetes questions Roadmap: Kubernetes core

More on Scheduling and Pending Pods