Compact way to inspect wait state reasons.
Section: CrashLoopBackOff and Image Pull Errors
Show waiting reason for first container
bash
bash
kubectl get pod <pod> -n <namespace> -o jsonpath='{.status.containerStatuses[0].state.waiting.reason}{"
"}'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
Find CrashLoopBackOff pods
List pods that are restarting and failing to stay up.
Read logs from the previous failed container
Very useful when a restart wipes current state.
Describe image pull failures
Inspect ErrImagePull and ImagePullBackOff reasons.
Inspect image pull secrets referenced by a pod
Verify that imagePullSecrets are wired correctly.
Describe docker registry secret
Check secret type and metadata for image pulls.
Inspect init container statuses
See waiting, terminated, and exit details for init containers.