pod phase
A one-word summary of where a pod is in its life: Pending, Running, Succeeded, Failed or Unknown.
In more detail
Pending means the pod is accepted but not all of its containers are running yet, which covers scheduling, waiting for a claim and pulling images. The phase is a summary, not a cause; container states, conditions and events explain why. CrashLoopBackOff and ImagePullBackOff are container reasons, not phases.
Example
kubectl get pod web -o jsonpath='{.status.phase}'Related terms
- spec and status — The two halves of most Kubernetes objects: spec is what you ask for, and status is what the cluster reports is actually true.
- CrashLoopBackOff — A container status meaning the container keeps exiting after it starts, so the kubelet is waiting longer and longer before restarting it.
- ImagePullBackOff — A container status meaning the node cannot download the container image, so the kubelet is waiting longer and longer between attempts.
- unschedulable — The state of a pod that the scheduler cannot place on any node, which leaves it Pending with a FailedScheduling event explaining why.
Taught in
- Monitoring With The Built-in CLI — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Requests, Limits And Quotas — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Configuration And Security: Timed Drill And Checkpoint — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Mock Exam: Sixteen Tasks Against The Clock — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Control Plane: etcd, API Server, Scheduler, Controllers — Kubernetes: Production-Grade Container Orchestration
- Troubleshooting: describe, Events And A First Smoke Test — Kubernetes: Production-Grade Container Orchestration
- Pods, Init Containers And Sidecars — Kubernetes: Production-Grade Container Orchestration
- Troubleshooting: ImagePullBackOff And Failed Rollouts — Kubernetes: Production-Grade Container Orchestration
- Troubleshooting: Pending Claims And Failed Mounts — Kubernetes: Production-Grade Container Orchestration
- Node Affinity, Pod Affinity And Topology Spread — Kubernetes: Production-Grade Container Orchestration
- Troubleshooting: Pending Pod Triage — Kubernetes: Production-Grade Container Orchestration
- kubeadm, High Availability And Cluster Lifecycle — Kubernetes: Production-Grade Container Orchestration