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.
More on Live debugging tasks
A pod is in CrashLoopBackOff. You have 10 minutes. Walk through your commands.BeginnerThe pod shows `OOMKilled`. Diagnose and fix it.BeginnerA pod is stuck in `ImagePullBackOff`. Fix it.BeginnerThe Service returns "connection refused" but pods are Running. Debug it.IntermediateA Docker container exits immediately after `docker run -d`. Find out why.Beginner`docker build` fails with "COPY failed: file not found in build context". Fix it.Beginner