2020-10-05 08:09:36 -07:00
|
|
|
# kubectl describe
|
|
|
|
|
|
|
|
> Show details of Kubernetes objects and resources.
|
|
|
|
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#describe>.
|
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
- Show details of pods in a namespace:
|
2020-10-05 08:09:36 -07:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`kubectl describe pods {{[-n|--namespace]}} {{namespace}}`
|
2020-10-05 08:09:36 -07:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
- Show details of nodes in a namespace:
|
2020-10-05 08:09:36 -07:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`kubectl describe nodes {{[-n|--namespace]}} {{namespace}}`
|
2020-10-05 08:09:36 -07:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
- Show the details of a specific pod in a namespace:
|
2020-10-05 08:09:36 -07:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`kubectl describe pods {{pod_name}} {{[-n|--namespace]}} {{namespace}}`
|
2020-10-05 08:09:36 -07:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
- Show the details of a specific node in a namespace:
|
2020-10-05 08:09:36 -07:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`kubectl describe nodes {{node_name}} {{[-n|--namespace]}} {{namespace}}`
|
2020-10-05 08:09:36 -07:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
- Show details of Kubernetes objects defined in a YAML manifest file:
|
2020-10-05 08:09:36 -07:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`kubectl describe {{[-f|--file]}} {{path/to/manifest.yaml}}`
|