concept

Pod states and conditions

Phase summarizes the Pod lifecycle. Per-container state, readiness, previous termination and restart count provide independent diagnostic evidence. CrashLoopBackOff is not a phase.

Formal Syntax & Structure

kubernetes syntaxkubernetes
Pod states and conditions

Working Example

Example Snippetkubernetes
{  "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"        }      }    }  ]}
Kubernetes Reference