Skip to content
Loopedin Labs

ImagePullBackOff

The node can't fetch your image, so nothing ever starts.

Mini Rush · practice

Three questions before you read

Guessing first makes the answers stick. No sign-in.

Nothing has run yet. The pod's Events hold the whole story.

What it means

The kubelet tried to pull the container image and failed. The first failure shows as ErrImagePull. The kubelet then retries with a growing delay, capped at 5 minutes, and the pod shows ImagePullBackOff while it waits. Both names describe the same problem. The container never started, so there are no logs to read.

Usual causes

  • Typo in the image name, or a tag that was never pushed (not found, manifest unknown).
  • Private registry with no credentials, or the imagePullSecrets Secret sits in a different namespace (unauthorized, pull access denied).
  • Expired registry token. ECR tokens last 12 hours, so a hand-made Secret goes stale.
  • Docker Hub rate limit (toomanyrequests), common when a cluster sits behind one NAT IP.
  • Wrong CPU architecture: an amd64-only image on arm64 nodes (no match for platform in manifest).
  • Node cannot reach the registry: DNS, proxy, firewall or a private endpoint.

Debug commands

kubectl describe pod <pod> -n <ns>      # Events: the registry's exact message
kubectl get pod <pod> -n <ns> -o jsonpath='{.spec.containers[*].image}'
kubectl get pod <pod> -n <ns> -o jsonpath='{.spec.imagePullSecrets}'
kubectl get secret <name> -n <ns>        # must exist in the pod's namespace

Check that the tag exists and which platforms it covers, from your laptop:

docker manifest inspect <registry>/<repo>:<tag>

To rule out the network, pull from the node itself (containerd nodes):

sudo crictl pull <registry>/<repo>:<tag>

Fixes

Correct the image reference and roll it out:

kubectl set image deployment/<name> <container>=<registry>/<repo>:<good-tag> -n <ns>

Create the pull Secret in the right namespace:

kubectl create secret docker-registry regcred -n <ns> \
  --docker-server=<registry> --docker-username=<user> --docker-password=<token>

Reference it under spec.imagePullSecrets, or attach it to the ServiceAccount. For rate limits, use authenticated pulls or mirror images into your own registry. For architecture, build multi-arch with docker buildx build --platform linux/amd64,linux/arm64.

Common wrong fix

Switching the tag to :latest. It fixes nothing when the problem is auth, network, rate limits or architecture. :latest also defaults imagePullPolicy to Always, so every pod start hits the registry and burns rate limit. And it moves: two nodes can run different code under the same tag, and a rollback has no fixed version to go back to. Pin an immutable version tag, or a digest (@sha256:...), and fix the real error from Events.