From the course: Certified Kubernetes Administrator (CKA) Cert Prep (2024)

Unlock this course with a free trial

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

Troubleshooting Kubernetes applications

Troubleshooting Kubernetes applications

- In this video we'll talk about troubleshooting Kubernetes applications. So the first step in the troubleshooting procedure, so use kubectl get, this will give you a generic overview of Pod states. And a Pod can be in any of the following states, and it makes sense if you know what it means. A Pod can be in the status of pending. That means that a Pod has been created in etcd, but it's waiting for an eligible node. That can happen. For instance, if there's a resource request, it cannot be matched by any of the nodes, or if taints and tolerations are happening. You want your Pod to be in a state of learning. That means that the Pod is in a healthy state. Succeeded is what you will see when the Pod has done its work and there is no need to restart it. So that will happen if restart policy is set to never. Failed is what you will see if one or more containers in the Pod have ended with an error code and will not be restarted. Unknown is what you get if the state could not be obtained…

Contents