Wednesday 22 July 2020

Kubernetes: Different states of Pod

a. Pending: Pod is accepted by Kubernetes and an entry has been created in etcd (Kubernetes Database), but the container is not yet created.

 

b. Running: Pod is scheduled on a node and all the containers are created and at least one container is in running state.

 

c. Succeeded: All the containers in the pod are exited with the status code 0 (Status code 0 means successful).

 

d. Failed: If any of the containers is exited with a non-zero status code.

 

e. CrashLoopBackOff: Container failed to start and Kubernetes tries multiple restarts of the Pod to make it successful.

 

f. Unknown: Pod Status couldn’t be determined.

 

You can see the Pod status by executing either of the below commands.

kubectl get pods (OR)

kubectl get pod {podName}

Previous                                                    Next                                                    Home

No comments:

Post a Comment