Kubernetes Pod Debugging Cheat Sheet/Inspect image pull secrets referenced by a pod

Verify that imagePullSecrets are wired correctly.

Section: CrashLoopBackOff and Image Pull Errors

Inspect image pull secrets referenced by a pod

bash
bash
kubectl get pod <pod> -n <namespace> -o jsonpath='{.spec.imagePullSecrets[*].name}{"
"}'

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing CrashLoopBackOff and Image Pull Errors
Describe docker registry secret
Check secret type and metadata for image pulls.
OpenIn sheetbashsame section
Describe image pull failures
Inspect ErrImagePull and ImagePullBackOff reasons.
OpenIn sheetbashsame section
Find CrashLoopBackOff pods
List pods that are restarting and failing to stay up.
OpenIn sheetbashsame section
Read logs from the previous failed container
Very useful when a restart wipes current state.
OpenIn sheetbashsame section
Show waiting reason for first container
Compact way to inspect wait state reasons.
OpenIn sheetbashsame section
List Pending pods
Find pods stuck before startup.