2025-03-14 21:59:59 -06:00
|
|
|
# kubectl describe
|
|
|
|
|
|
|
|
|
|
> Show details of Kubernetes objects and resources.
|
|
|
|
|
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#describe>.
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
- Show details of pods in a namespace:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`kubectl describe {{[po|pods]}} {{[-n|--namespace]}} {{namespace}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
- Show details of nodes in a namespace:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`kubectl describe {{[no|nodes]}} {{[-n|--namespace]}} {{namespace}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
- Show the details of a specific pod in a namespace:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`kubectl describe {{[po|pods]}} {{pod_name}} {{[-n|--namespace]}} {{namespace}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
- Show the details of a specific node in a namespace:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`kubectl describe {{[no|nodes]}} {{node_name}} {{[-n|--namespace]}} {{namespace}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
- Show details of Kubernetes objects defined in a YAML manifest file:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`kubectl describe {{[-f|--filename]}} {{path/to/manifest.yaml}}`
|