Skip to content

kubectl describe Pod

kubectl describe pod is a command used to display detailed diagnostic information about one or more pods.^[400-devops__06-Kubernetes__k8s-learning__03.pod__README.md] Unlike kubectl get pods, which shows a summary list, this command outputs a comprehensive view of the Pod's state, including initialization details, current status, IP addresses, and container configurations.^[400-devops__06-Kubernetes__k8s-learning__03.pod__README.md]

Usage

To inspect a specific Pod, execute the command with the Pod's name.^[400-devops__06-Kubernetes__k8s-learning__03.pod__README.md] The output is generally divided into several key sections:

  • Basic Information: Includes the Name, Namespace, Priority, Node assignment, Start Time, Labels, and Annotations.^[400-devops__06-Kubernetes__k8s-learning__03.pod__README.md]
  • Status: Provides the current lifecycle phase (e.g., Running), the Pod IP, and specific status conditions such as Initialized, Ready, ContainersReady, and PodScheduled.^[400-devops__06-Kubernetes__k8s-learning__03.pod__README.md]
  • Containers: Lists the containers within the Pod, displaying details such as the Container ID, Image, Image ID, State (e.g., Running), and the time it was Started.^[400-devops__06-Kubernetes__k8s-learning__03.pod__README.md]
  • System Events: An "Events" log chronicles the history of Pod actions, such as scheduling decisions and image pulling operations, which is crucial for troubleshooting startup failures.^[400-devops__06-Kubernetes__k8s-learning__03.pod__README.md]

Sources

^[400-devops__06-Kubernetes__k8s-learning__03.pod__README.md]