Troubleshooting Applications in Kubernetes
To be able to troubleshoot applications efficiently, you need to understand some key concepts in Kubernetes. This will light up the way to ease the process of figuring out and solving issues. As one of these concepts, we explain the Pod life cycle in the next section.
Pod Life Cycle
In Kubernetes, a Pod goes through many different stages. They are controlled either by the creator of the Pod object or by the Kubernetes controller. In the lifetime of a Pod, it is never destroyed unless that is explicitly requested.
Pod Status
Every Pod object has a status field that shows the life cycle events of the Pod. It consists of many subfields for us to understand what the current health status of the Pod is.
Here's an example of what a Pod status includes:
status: conditions: - lastProbeTime: null //[...] Events: FirstSeen LastSeen Count From SubobjectPath Type Reason Message --------- -------...