Diagnostic step 1
Verify secret type and content: kubectl get secret -n <ns> <secret> -o yaml and confirm type: kubernetes.io/dockerconfigjson and valid data.dockerconfigjson.
Generated Oct 20, 2026, 9:41:02 AM
Verify secret type and content: kubectl get secret -n <ns> <secret> -o yaml and confirm type: kubernetes.io/dockerconfigjson and valid data.dockerconfigjson.
Patch the serviceaccount(s) used by your deployments to include the new secret: kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "ns-registry-secret"}]}' -n <ns>.
Trigger a rollout restart for deployments so pods are recreated and pick up updated serviceaccount: kubectl rollout restart deployment/<name> -n <ns>.
For immediate per-deployment fix without serviceaccount changes, add imagePullSecrets: to the pod spec and apply; this is reversible by removing the field.
If many namespaces/services are affected, script patching serviceaccounts and scheduling rolling restarts; test on one deployment first.