Interview Prep/Real-World Interview/Kubernetes cluster-level

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.

All Real-World Interview questions Roadmap: Interview readiness

More on Kubernetes cluster-level