Skip to main content
Running workloadsLesson 13 of 14

Reading status in three layers and the troubleshooting order

The single "status" column in the pod list mixes three different layers of information. Here we unpack it and follow where to look first, events or logs, in each situation. Which stage of pod startup gets stuck is covered in How a Pod Starts.

Pod phase—
Container state—
Reason—
READY—
Three layersPod listSTATUS·READYPod phasephaseContainerstateReasonreasonEventsKubernetes recordsLogswritten by the appNodeReady·pressure
RequestResponse / reportAppears in a later step

What you will learn

  • Why the status column mixes phase names and reason names
  • A Running pod can still be short on READY
  • Pre-run problems: events first; post-run failures: logs first
  • When many pods fail at once, look at the node

Where to look first​

What the status column showsUnpacked (phase / container / reason)Look first atWhat to check
PendingPending / none yet / FailedSchedulingEventsInsufficient cpu·memory: requests, quotas, node headroom; taint: placement rules
ImagePullBackOffPending / Waiting / ImagePullBackOffEventsnot found: name and tag; unauthorized: credentials; timeout: registry address and network
CrashLoopBackOffRunning / Waiting / CrashLoopBackOffPrevious container logsApp error messages, reason and exit code in Last State
OOMKilledRunning / Terminated / OOMKilledMemory usageCompare the memory limit with actual usage
CreateContainerConfigErrorPending / Waiting / CreateContainerConfigErrorEventsWhether the referenced ConfigMap or Secret exists and the key names match
Unknown, many pods failing at onceUnknown / - / -Node statusNotReady, pressure conditions

See events with kubectl describe pod <name> and the previous container's logs with kubectl logs <name> --previous. Logs exist only on pods, so when you spot a problem on a Deployment, drill down to its pods. See all events in a namespace with kubectl get events --sort-by=.lastTimestamp.

Try it yourself​

kubectl get pods # STATUS: one merged value
kubectl get pod <pod> -o jsonpath='{.status.phase}' # The phase on its own
kubectl describe pod <pod> # Events and Last State
kubectl get events --sort-by=.metadata.creationTimestamp # Recent events (gone after ~1 hour)
kubectl logs <pod> --previous # Logs of the exited container
kubectl describe node <node> # Node Conditions when many pods fail

Check yourself

  1. A pod is stuck in Pending and kubectl logs shows nothing. Where should you look first?
  2. A pod shows CrashLoopBackOff. What should you check first?
  3. Several pods on the same node fail at once, and some show Unknown. What should you look at?

Further reading: Debug pods · kubectl cheat sheet · Pod lifecycle · When a Pod Dies (Self-Healing)