Pod status in Kubernetes
It tells us where the Pod is in the lifecycle. You can see Pod status in the output of the following command:
kubectl get pod
This gives only a high level summary of a Pod:
- Pending - then the Pod is first created it is in the Pending state. This is when Scheduler tries to figure out where to place the Pod. If the Scheduler cannot find a place to put the Pod, it remains in this state
- ContainerCreating - once the Pod is scheduled it goes to the ContainerCreating status where the images required for the application are pulled and the container starts
- Running - once all containers in the Pod starts it goies into Running state, and it continues to be until program completes successfully or it is terminated