Junior — Middle
What is the purpose of the 'describe' command when working with a Kubernetes cluster?
sobes.tech AI
Answer from AI
The kubectl describe command is used to obtain detailed information about a specific resource in a Kubernetes cluster. It displays detailed data, including metadata, status, events, and object configuration.
For example, to view details about a pod, you can run:
kubectl describe pod <pod-name>
This helps quickly diagnose issues, view the status and events related to the resource, which is useful for debugging and cluster monitoring.