FULL AI ANALYSIS

Kubernetes pods show ImagePullBackOff when pulling image from private registry after credential rotation

Generated Nov 1, 2026, 9:47:23 AM

Analysis summary

ImagePullBackOff from private registries after credential rotation is usually due to (a) secret not referenced by the serviceaccount or pod spec, (b) secret created in a different namespace, (c) kubelet/node-level caching or old docker-credential helpers, or (d) TLS verification failing on nodes. Diagnosis should confirm secret contents, binding, node trust, and attempt a direct docker pull on nodes.

Possible causes

imagePullSecret exists but not referenced by the pod's serviceAccount or pod spec

60%

Secret recreated in the wrong namespace or with incorrect type/format

45%

Node TLS trust issue for registry CA (x509: certificate signed by unknown authority)

40%

Kubelet cached credentials or credential helper mismatch; nodes still using old cached auth

30%

Suggested fixes

1

Diagnostic step 1

Describe the pod to read the pull error: kubectl describe pod <pod> -n <ns> and look under Events for 'Failed to pull image' messages and exact error text. Result meaning: If error mentions 'unauthorized' or 'denied', credentials are wrong or not provided. If error mentions x509 or certificate names, it's a TLS trust problem on the node.

2

Diagnostic step 2

Check secret and its annotation: kubectl get secret <secret-name> -n <ns> -o yaml and confirm type: kubernetes.io/dockerconfigjson and data['.dockerconfigjson'] present. Also verify the pod spec uses imagePullSecrets or the serviceAccount references the secret. Result meaning: If secret missing or wrong type, recreate with kubectl create secret docker-registry and ensure it's in the same namespace. If pod/serviceAccount not referencing it, add the reference and redeploy.

3

Diagnostic step 3

On a node that attempted the pull, try docker pull <registry>/<image>:tag (or crictl pull for containerd) after logging into the registry using the same credentials: docker login <registry> && docker pull ... Result meaning: If manual pull succeeds, node can reach the registry and credentials are correct for that node. If manual pull fails with TLS errors, address CA/trust on nodes.

4

Diagnostic step 4

Verify serviceAccount binding: kubectl get serviceaccount <sa> -n <ns> -o yaml and confirm imagePullSecrets includes the secret. Also check default serviceAccount if pod doesn't specify one. Result meaning: If serviceAccount lacks the secret, pods using it won't receive credentials. Adding the secret to the serviceAccount and recreating pods resolves the binding.

5

Diagnostic step 5

Check node kubelet logs for image pull errors: sudo journalctl -u kubelet --since '10m' | grep -i 'pull' or check container runtime logs (containerd/cri) for pull errors. Result meaning: Node logs often contain detailed TLS or auth errors that help decide whether the fix is secret, CA distribution, or node-level cache needing kubelet/containerd restart.