Troubleshooting guide
Kubernetes ImagePullBackOff: causes and how to fix it
ImagePullBackOff means the node could not download the container image and is waiting before it tries again. The exact reason is in the pod's events.
3 min read9 sectionsUpdated
On this page
What it means
The kubelet asks the container runtime to pull the image. The first failure appears as ErrImagePull. Kubernetes then retries with exponential backoff up to five minutes, and the status becomes ImagePullBackOff. So no container has started, and application logs are empty: kubectl logs cannot help here.
Common causes
- The image or tag does not exist, from a typo or a CI pipeline that failed before pushing.
- Authentication failure. A private registry without an
imagePullSecret, or an expired token. - A secret in the wrong namespace. Secrets are namespaced, so one in
defaultdoes not help a pod inprod. - Registry rate limits such as Docker Hub's anonymous pull limit, shared across a NAT address.
- Architecture mismatch. An
amd64image onarm64nodes gives "no matching manifest". - Node networking: no route or DNS to the registry, or a blocking network policy or proxy.
Diagnose it
The event message is specific: "not found" points to the name, "unauthorized" to credentials, and "toomanyrequests" to rate limits.
# The event that explains the failure
kubectl describe pod my-pod -n prod | sed -n '/Events:/,$p'
# Exact image the pod requests, and its pull secrets
kubectl get pod my-pod -n prod -o jsonpath='{.spec.containers[*].image}{"\n"}{.spec.imagePullSecrets}{"\n"}'
# Does the secret exist here?
kubectl get secret regcred -n prod
# Does the image exist, and for which architectures?
docker manifest inspect registry.example.com/app:1.4.2 | grep architectureFixes
Correct the tag, and prefer immutable version tags over latest. Create the secret in the namespace that needs it:
kubectl create secret docker-registry regcred --docker-server=registry.example.com --docker-username=ci --docker-password=TOKEN -n prod
Then reference it in the pod spec or attach it to the service account. Build multi-architecture images if your nodes vary. Use a pull-through cache or mirror to avoid public registry limits, and use short-lived credential helpers for registries like ECR, whose tokens expire after 12 hours.
Catch it automatically
A rollout stuck on a bad image can leave the old pods serving traffic, so nothing looks broken until the next node drain. Alert on any pod in ImagePullBackOff for more than a few minutes, and make your deployment pipeline fail when kubectl rollout status times out. Infrastructure monitoring shows these pods across the cluster.
What is the difference between ErrImagePull and ImagePullBackOff?
ErrImagePull is the failure itself. ImagePullBackOff means Kubernetes is waiting before the next retry.
How often does Kubernetes retry?
The delay grows exponentially up to a five-minute limit, and it keeps retrying indefinitely.
Why does it work on some nodes only?
Those nodes may already hold the image in their cache, or have a different architecture or network path.
Related reading
- 502 Bad Gateway: causes and how to fix it: What a 502 Bad Gateway means, the common causes behind Nginx, load balancers and CDNs, how to find yours and how to stop it happening again.
- 408 Request Timeout: causes and how to fix it: Understand 408 Request Timeout: slow client uploads, idle keep-alive connections and proxy settings, and how it differs from a 504 Gateway Timeout.
- ERR_HTTP2_PROTOCOL_ERROR: causes and how to fix it: Fix ERR_HTTP2_PROTOCOL_ERROR in Chrome: invalid response headers, crashed backends behind HTTP/2 proxies, buffer limits and antivirus interference.
- 503 Service Unavailable: causes and fixes: Why servers return 503 Service Unavailable, from overload and maintenance to no healthy backends, how to diagnose each cause and how to recover and prevent it.
- DNS SERVFAIL: causes and how to fix it: Fix DNS SERVFAIL responses: broken DNSSEC chains, unreachable or lame nameservers and misconfigured delegation, with dig commands that isolate each cause.
- CreateContainerConfigError in Kubernetes: how to fix it: Fix Kubernetes CreateContainerConfigError: missing Secrets and ConfigMaps, wrong keys and namespaces, with kubectl commands that show exactly what is absent.
Watch your own site and services with VitalRix
Uptime checks, APM, logs, real-user monitoring, alerts and status pages in one place. Every product has a free tier and no credit card is needed.