Pulls from Docker Hub randomly fail with `toomanyrequests: You have reached your pull rate limit`.
IntermediateTroubleshootingPod startup failures
Answer
Likely causes → Anonymous Docker Hub pulls are rate-limited per source IP. All nodes behind one NAT gateway share the quota, and autoscaling events cause pull bursts.
Diagnose →
kubectl get events -A --field-selector reason=Failed | grep toomanyrequests
kubectl get pods -A -o jsonpath='{..image}' | tr ' ' '\n' | grep -v '\.' | sort -u # images with no registry host = docker.io
Fix → Authenticate pulls with a Docker Hub account secret, or mirror images into your own registry (ECR pull-through cache, Harbor proxy cache) and rewrite image references.
Prevent → Policy (Kyverno/Gatekeeper) that only allows images from your registry; imagePullPolicy: IfNotPresent with pinned tags so nodes reuse cached layers.
More on Pod startup failures
A Pod shows `CrashLoopBackOff` with `RESTARTS 7` and events say `Back-off restarting failed container app`. Where do you start?Beginner`kubectl logs web-0 --previous` returns nothing useful and the container dies in under a second. How do you get inside it?IntermediatePod status is `ImagePullBackOff` and events show `Failed to pull image "registry.example.com/web:1.4.2": rpc error: code = NotFound desc = failed to pull and unpack image ... not found`.BeginnerEvents show `pull access denied for registry.example.com/web, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed`.BeginnerA private registry with an internal CA fails with `x509: certificate signed by unknown authority` during image pull.IntermediateA new image works on laptops but on nodes the Pod crash-loops and logs show only `exec /app/server: exec format error`.Intermediate