Interview Prep/Kubernetes/Scheduling and Pending Pods

Pending with `0/10 nodes are available: 10 Too many pods.` while CPU and memory are free.

IntermediateTroubleshootingScheduling and Pending Pods
Answer

Likely causes → Nodes hit their maxPods limit (default 110 on kubelet; on EKS with the VPC CNI it is derived from ENI/IP limits, e.g. 17 on t3.medium, 29 on m5.large).

Diagnose →

kubectl get nodes -o custom-columns=NAME:.metadata.name,PODS:.status.allocatable.pods
kubectl get pods -A --field-selector spec.nodeName=ip-10-0-1-5.ec2.internal --no-headers | wc -l

Fix → Use bigger instance types, enable prefix delegation on EKS and raise maxPods, or clean up leftover completed/evicted Pods that still count.

Prevent → Pick instance types by Pod density, not only CPU/RAM; include pods in capacity dashboards.

All Kubernetes questions Roadmap: Kubernetes core

More on Scheduling and Pending Pods