describe
What is describe?
describe: Show a detailed, human-readable dump of one resource — including recent Events, which is where you find why a Pod won't start. kubectl describe shows a detailed, readable overview of one Kubernetes resource. For a pod, that includes its containers, image, status, volumes, and most importantly the recent events. The events at the bottom are where you find out why something is not working. An image that cannot be pulled, a pod that cannot be scheduled because there is not enough memory, a failing health check, a container killed for using too much memory: they all show up there.
Frequently asked questions about describe
What should you keep in mind with describe?
When a pod is stuck in Pending, CrashLoopBackOff or ImagePullBackOff, start with kubectl describe pod <name>. Then check kubectl logs <name> for the application's own output, adding --previous for a container that already restarted. Those two commands solve most everyday Kubernetes problems.
What does an example of describe look like?
kubectl describe pod web-7d9f8c-abc12 At a glance
| Category | Kubernetes |
|---|---|
| Explained by | Reinier de la Parra |
| Updated |