KubeGlanceDownload
Kubernetes pod status errors: every STATUS value, and the fix

troubleshooting

Kubernetes pod status errors: every STATUS value, and the fix

Every STATUS kubectl get pods can show, from Pending to Terminating: which field it comes from, what it means, and the guide that fixes each one.

· 8 min read

The STATUS column in kubectl get pods is not a field in the Pod. kubectl computes it on your machine from four inputs: the pod’s status.phase, an optional pod-level status.reason, each container’s current state, and metadata.deletionTimestamp. Most values you will ever see there are container reasons, not phases.

This page lists every value worth knowing, grouped by where in a pod’s life it appears, with a one-line meaning and the article that fixes it. Checked against kubectl’s printPod on release-1.36 and a 1.36.1 cluster.

Phase vs reason: where each STATUS value comes from

A pod has only five phases: Pending, Running, Succeeded, Failed and Unknown. kubectl starts from the phase and then overwrites it, in this order:

  1. Pod status.reason, if set. The kubelet sets it when it rejects or evicts a pod: Evicted, OutOfcpu, NodeAffinity and similar.
  2. SchedulingGated, if the PodScheduled condition carries that reason.
  3. Init containers. While any is unfinished you get Init:N/M, Init:<reason>, or Init:ExitCode:N.
  4. App containers. A waiting reason (ImagePullBackOff, CreateContainerConfigError, CrashLoopBackOff) or a terminated reason (Error, OOMKilled, Completed) replaces whatever came before. With no reason, kubectl prints ExitCode:N or Signal:N.
  5. Deletion. A non-terminal pod with a deletionTimestamp prints Terminating, overriding all of the above. (kubectl prints Unknown instead if the pod’s reason is NodeLost, but on 1.36 the node lifecycle controller no longer sets that reason, so you will rarely see it.)

Eight pods on a 1.36.1 kind cluster, one per common failure:

NAME          READY   STATUS                       RESTARTS      AGE
bad-tag       0/1     ImagePullBackOff             0             104s
crasher       0/1     Error                        4 (66s ago)   104s
done          0/1     Completed                    0             104s
init-wait     0/1     Init:0/1                     0             104s
never-ready   0/1     Running                      0             104s
no-config     0/1     CreateContainerConfigError   0             104s
too-big       0/1     Pending                      0             104s
web           1/1     Running                      0             104s

And the fields underneath, which is what you should read when STATUS is ambiguous:

kubectl get pods -o custom-columns='NAME:.metadata.name,PHASE:.status.phase,WAITING:.status.containerStatuses[*].state.waiting.reason,TERMINATED:.status.containerStatuses[*].state.terminated.reason,LAST:.status.containerStatuses[*].lastState.terminated.reason'
NAME          PHASE       WAITING                      TERMINATED   LAST
bad-tag       Pending     ImagePullBackOff             <none>       <none>
crasher       Running     <none>                       Error        Error
done          Succeeded   <none>                       Completed    <none>
init-wait     Pending     PodInitializing              <none>       <none>
never-ready   Running     <none>                       <none>       <none>
no-config     Pending     CreateContainerConfigError   <none>       <none>
too-big       Pending     <none>                       <none>       <none>
web           Running     <none>                       <none>       <none>

Three things to take from that output. ImagePullBackOff and CreateContainerConfigError are phase Pending: the pod has a node but no running container. The crash-looping pod is phase Running and reads Error, not CrashLoopBackOff, because the kubelet writes the backoff reason one sync late. And never-ready reads Running with READY 0/1: STATUS says nothing about readiness.

Most STATUS values are container reasons that live inside two phases. Phase Pending covers everything up to the first started container, including image and config failures on a node. Phase Running covers crash loops.

The full derivation, including which container wins when several are failing in one pod (the one whose name sorts first, not the first in the spec), is in how kubectl decides what to put in the STATUS column.

Before the pod exists

If kubectl get pods shows nothing, the controller failed to create the pod and there is no STATUS to read. The error is on the ReplicaSet, Job or StatefulSet events.

What you seeWhat it meansFix
No pod; FailedCreate on the ReplicaSet with failed quota: must specify limits.cpuA ResourceQuota rejected the pod at admissionfailed quota: must specify limits
No pod; failed calling webhook ... context deadline exceededAn admission webhook timed out or is unreachablefailed calling webhook

Scheduling

STATUSWhat it meansFix
Pending, no node assignedThe scheduler found no node that fits; the reason is in the FailedScheduling event0/3 nodes are available: Pending pod
Pending, pod has unbound immediate PersistentVolumeClaimsA claim the pod mounts is not bound to a volume yetPVC stuck in Pending
SchedulingGatedspec.schedulingGates is non-empty; something must remove the gate(no dedicated article yet)

Image pull

STATUSWhat it meansFix
ErrImagePullThe most recent pull failed: bad tag, private registry, or no networkImagePullBackOff and ErrImagePull
ImagePullBackOffThe kubelet is waiting before retrying a failed pull, 10s doubling to 5 minutesImagePullBackOff and ErrImagePull
Init:ErrImagePull, Init:ImagePullBackOffThe same, for an init containerThe Init: prefix in STATUS

Container create and init

STATUSWhat it meansFix
Init:0/2Init containers are still running; the number is how many finishedThe Init: prefix in STATUS
Init:CrashLoopBackOff, Init:ErrorAn init container exits non-zero and is being retriedThe Init: prefix in STATUS
ContainerCreatingThe kubelet is still mounting volumes, setting up the network, or pullingPod stuck in ContainerCreating
ContainerCreating with Multi-Attach error for volumeA ReadWriteOnce volume is still attached to another nodeMulti-Attach error for volume
CreateContainerConfigErrorA ConfigMap, Secret or key the container references does not existCreateContainerConfigError
CreateContainerErrorThe runtime refused to create the container: bad command, name conflict, mount errorCreateContainerConfigError and CreateContainerError

Running but not working

STATUSWhat it meansFix
Running, READY 0/1The container runs but its readiness probe or a readiness gate failsPod Running but not Ready
NotReadyA container exited Completed while another still runs but is not readyPod Running but not Ready

Restarts and termination

STATUSWhat it meansFix
CrashLoopBackOffThe container keeps exiting; the kubelet waits longer before each restartHow to fix CrashLoopBackOff
Error with a climbing RESTARTS countA crash loop caught between restarts, or a node with a short maxContainerRestartPeriodCrashLoopBackOff delay is per-node config now
CrashLoopBackOff on a GPU podOften a failed device, which Kubernetes does not report as suchGPU pod CrashLoopBackOff
OOMKilled, exit code 137The kernel killed the container for exceeding its memory limit, or the node ran outOOMKilled and exit code 137
ContainerStatusUnknown, exit code 137The kubelet lost track of the container while the pod was being evicted or removed(guide publishing 1 December)
Error, exit code 143The container exited on SIGTERM: a deletion, a rollout, or a failed liveness probeExit codes in CrashLoopBackOff
CompletedEvery container exited 0; normal for Jobs, a bug for a DeploymentHow to fix CrashLoopBackOff
RESTARTS 3 (5m ago)Sum of restarts across containers, time since the latest oneThe RESTARTS column

Node and deletion

STATUSWhat it meansFix
TerminatingThe pod has a deletionTimestamp; a grace period, finalizer, volume or dead node is holding itPod stuck in Terminating
Error or Completed after deleteA terminal pod keeps its phase even while deleting, so grepping for Terminating misses itWhich resources show Terminating
Running 0/1, then Terminating that never finishesThe node stopped reporting (kubectl describe node shows Kubelet stopped posting node status): pods are marked not ready, evicted after the taint toleration expires, and nothing is left to confirm the killPod stuck in Terminating, and for a kubelet that will not start after an upgrade, Kubelet stopped posting node status on 1.37

Reading STATUS without being misled

  • STATUS shows one container. In a multi-container pod it is whichever container kubectl’s loop settled on. Read containerStatuses before deciding which container is broken.
  • Running is not healthy. Alert on the Ready condition; STATUS reads Running through a total readiness outage.
  • Pod-level status.reason beats container state. An evicted pod reads Evicted even though its containers terminated with their own reasons: kubectl get pod <pod> -o jsonpath='{.status.reason}{"\n"}'.
  • The message is one field away. Every waiting and terminated reason above has a message next to it in containerStatuses, and it usually names the missing object, the image, or the exit cause. kubectl describe pod prints it under each container’s State.

STATUS, the container reasons behind it and the events that explain them, on one screen. KubeGlance is a native Kubernetes client for iPhone and iPad, with a full Mac app on the same core, and its STATUS column is ported from kubectl's own algorithm.

Get KubeGlance
#pods #kubectl #troubleshooting #crashloopbackoff #imagepullbackoff

The Kubernetes dashboard that fits in your pocket

KubeGlance is a native Kubernetes client for iPhone and iPad — the real dashboard, not a companion — with a full Mac app on the same core. Pods, workloads, logs and events, straight from your kubeconfig.

Download KubeGlance

Choosing a Kubernetes client? Compare KubeGlance with Lens, k9s, Headlamp and Aptakube, or see the Mac and iPhone options.