Pods fail with `ImagePullBackOff` and events show "toomanyrequests: You have reached your pull rate limit."
BeginnerTroubleshootingKubernetes cluster-level
Answer
Likely causes → Docker Hub rate limits anonymous and free-tier pulls per IP. All nodes behind one NAT gateway share a single public IP, so a scale-up or node rotation burns the limit in minutes.
Diagnose →
kubectl describe pod <pod> | grep -A3 Failed
kubectl get pods -A -o jsonpath='{..image}' | tr ' ' '\n' | grep -v '\.' | sort -u # images with no registry host = docker.io
Fix → Short term, add authenticated pulls with an imagePullSecret for a paid Docker account. Proper fix: mirror the images into your own registry (ECR, Artifact Registry, Harbor) and update the manifests, or configure an ECR pull-through cache.
Prevent → Policy (Kyverno/Gatekeeper) that only allows images from your own registry, and pin images by digest so you know exactly what's mirrored.
More on Kubernetes cluster-level
Every `kubectl` command fails with "The connection to the server 10.0.1.10:6443 was refused - did you specify the right host or port?"BeginnerA new deployment's pods stay Pending with "0/5 nodes are available: 5 Insufficient cpu. preemption: 0/5 nodes are available: 5 No preemption victims found for incoming pod."BeginnerPods are Pending, but Cluster Autoscaler won't add nodes; the pod events say "pod didn't trigger scale-up: 2 node(s) didn't match Pod's node affinity/selector, 1 max node group size reached".IntermediateA node goes NotReady and kubelet logs "PLEG is not healthy: pleg was last seen active 3m10s ago; threshold is 3m0s".IntermediateAfter a node was terminated, its pods have shown `Terminating` for two hours and their replacements aren't being created.IntermediateYou deleted a namespace an hour ago and it's still `Terminating`.Intermediate