Pod Conditions in Kubernetes
Conditions complement Pod Status, it is an array of True/False values that tell us the state of the Pod:
- PodScheduled. Then the Pod is scheduled on a node, this condition is set to True
- Initialized. Respective when the Pod is initialized - this value is set to True
- ContainersReady. True - when the all containers in the Pod are ready
- Ready. True - when the Pod itself are considered ready and it is ready to accept user traffic
- Unschedulable: True when the Pod can't be scheduled, for example due to resource constraints
To check the condidtions, run:
kubectl describe po {{ pod_name }}
and look to the Conditions section. Also the condtition
Ready can be viewed with:
kubectl get po
check READY field