Pod Life cycle in Kubernetes

Anushka Bhagchandani
1 min readFeb 20, 2023

--

A Pod in Kubernetes is the smallest unit of deployment, representing a single instance of a process that is running in your cluster. The Pod lifecycle involves several phases:

  • Pending: When you first create a Pod, Kubernetes is in the process of scheduling it to run on a node in your cluster. This is the “Pending” phase.
  • Running: After the Pod has been scheduled to a node, it enters the “Running” phase. At this point, the containers in the Pod are up and running, and performing their assigned tasks.
  • Succeeded or Failed: Once the task assigned to the containers in the Pod is completed, the Pod enters the “Succeeded” phase if the task is successful, or the “Failed” phase, if there is an error or the task, fails to complete.
  • CrashLoopBackOff: Sometimes, the containers in the Pod may crash and restart repeatedly due to problems with the container or underlying node. In this case, the Pod enters the “CrashLoopBackOff” phase, and Kubernetes will try to restart the containers until they can run successfully.
  • Terminating: Finally, when you delete a Pod or when Kubernetes needs to evict it for some reason, the Pod enters the “Terminating” phase. During this phase, Kubernetes will try to shut down the containers in the Pod gracefully, allowing them to complete any outstanding tasks before they are terminated.

--

--