Pod states and conditions
Running does not mean ready
A Pod phase summarizes broad lifecycle progress. Container state describes what a particular container is doing. Readiness reports whether a Pod or container is considered ready. These signals answer different questions: a server may be running but still warming up, and one container can be waiting while another continues running. Read status before deciding whether a workload is healthy.
Read a synthetic observed status
This is a shortened JSON status excerpt, not a manifest to submit. It describes a two-container Pod after several unsuccessful reader starts.
{ "phase": "Running", "conditions": [ { "type": "Ready", "status": "False" } ], "containerStatuses": [ { "name": "catalog", "ready": true, "restartCount": 0, "state": { "running": {} } }, { "name": "reader", "ready": false, "restartCount": 3, "state": { "waiting": { "reason": "CrashLoopBackOff" } }, "lastState": { "terminated": { "exitCode": 1, "reason": "Error" } } } ]}The phase is Running, catalog is running and ready, and reader is waiting and not ready. The Pod Ready condition is False. The previous reader exit was unsuccessful. Three recorded restarts do not mean three replacement Pods. CrashLoopBackOff is a reason associated with repeated failed launches or exits and a delay between attempts; it is not a Pod phase. The excerpt does not reveal the cause of the exit.
Five phases and three container states
Pod phases are Pending (accepted but setup not complete), Running (assigned to a node, containers created and at least one still running or starting/restarting), Succeeded (all containers finished successfully without further restart), Failed (all containers terminated, at least one failed, no further restart) and Unknown (the system cannot determine the Pod state). Container states are Waiting, Running and Terminated, represented by waiting, running or terminated in status. A waiting container may be preparing to start, waiting on an image, or in restart backoff. A terminated state can carry an exit code and reason. A command-line STATUS column can present other summaries and is not the same field as phase.
Read conditions separately
Conditions contain a type and status, typically True, False or Unknown. PodScheduled describes placement; Initialized tracks initialization; ContainersReady describes readiness of all containers; Ready indicates readiness of the Pod including any configured readiness gates. These are selected common conditions, not a complete versioned inventory. The later probes lesson explains how an application-specific readiness check contributes to this result. A ready condition does not by itself prove every application transaction succeeds.
Diagnose before changing configuration
Start by comparing current state, previous termination, restart count and conditions. In a separately approved isolated lab, kubectl describe can provide events and state details; kubectl logs with -c selects one container, and --previous asks for the previous terminated instance if logs are available. For example, these static commands assume a reviewed lab-only kubeconfig, context, namespace and real catalog-pair Pod. Do not run them against a default or unknown context.
kubectl --kubeconfig=./bm-lab.conf --context=bm-lab -n book-lab describe pod catalog-pairkubectl --kubeconfig=./bm-lab.conf --context=bm-lab -n book-lab logs catalog-pair -c reader --previousWithout actual logs or other evidence, do not assert whether a missing file, a bad argument or another error caused the exit. Restarting repeatedly or disabling health checks is not a diagnosis. Logs can contain sensitive data; this package uses synthetic status only.
Practice
Read observed-pod.json and identity-timeline.json. Identify the unready container, its previous exit code and restart count. In the timeline, distinguish the container restart from a replacement Pod using UID, not name. Write one next read-only diagnostic action and explain what evidence is still missing.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Pod states and conditions — knowledge check
Apply the lesson concepts to original offline scenarios.
The observed Pod phase is Running and Ready is False. What follows?
Which value is a waiting reason rather than a Pod phase?
Which container has three recorded restarts in the example?
Which command option selects logs from the previous terminated instance when available?
What can you conclude from reader last exit code 1 alone?