A pod is `Pending` forever. What do you check?

AdvancedHands-onLive debugging tasks
Answer
kubectl describe pod worker-0 | sed -n '/Events/,$p'
# "0/6 nodes are available: 3 Insufficient cpu, 3 node(s) had untolerated taint"
kubectl describe nodes | grep -A5 'Allocated resources'
kubectl get pvc                          # unbound PVC also keeps pods Pending
kubectl get nodes --show-labels | grep -i zone

Fixes: lower requests or add nodes (check the cluster autoscaler or Karpenter logs), add a toleration, fix the nodeSelector or affinity typo, or fix the StorageClass or zone mismatch for the PVC.

Key trick → The scheduler's event message breaks down why each node was rejected. Scheduling uses requests, not real usage, which is why a "mostly idle" cluster can still report Insufficient cpu.

All Real-World Interview questions Roadmap: Interview readiness

More on Live debugging tasks