[No Audio]
Just like containers, Pods have their lifecycles as well.
First of all, Pod is in the pending state.
It means its configurations are approved by kube-controllermanager
and apiserver, but it is yet to be sheduled on a node.
Once it gets green signal from kubelet,
and it is sheduled, it is in
the Running state. It means at least one of the
Pod's container is definitely running.
Sometimes, the containers are programmed to exit after
performing a certain task. In such case, the Pod
goes to Succeeded state, where all of its
containers have exited successfully. Or you can say gracefully.
If one or more containers fail in
between, or a container dies due to being out of
memory, Pod goes to Failed state from Running state.
It can be rescheduled after troubleshooting.
In that case, it goes back to Pending and then
Running state. Lastly, we have Unknown state, where
the Pod is not running, but the reason
for it is not determined yet.
And this was the lifecycle of the Pod.