From the course: Certified Kubernetes Application Developer (CKAD) Cert Prep

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Analyzing failing applications

Analyzing failing applications

- So how do we analyze failing applications? Well, after using kubectl create or kubectl run, the requested resources are written to the etcd database. Next, the cube scheduler will look up a node that can run the application. And after finding an eligible node, the Pod image is pulled to this node. Next, a container is started and it runs its entrypoint application. And based on the success or failure of the entrypoint application, the Pod restartPolicy is applied to determine further action. Now in its lifetime, a Pod will go through different states. First there is Pending. That is where the Pod has been validated by the API server and an entry has been created in the etcd, but some prerequisite conditions have not been met. Pending is what you will typically find if the cube scheduler has not found an eligible node. But the yaml code in your application is okay. We have Running. That is what happens if a Pod currently is successfully running. Completed may occur if the Pod has…

Contents