2020-10-05 16:09:36 +01:00
|
|
|
# kubectl describe
|
|
|
|
|
|
|
|
> Show details of Kubernetes objects and resources.
|
|
|
|
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#describe>.
|
|
|
|
|
2023-12-27 06:22:49 +00:00
|
|
|
- Show details of pods in a [n]amespace:
|
2020-10-05 16:09:36 +01:00
|
|
|
|
2023-12-27 06:22:49 +00:00
|
|
|
`kubectl describe pods --namespace {{namespace}}`
|
2020-10-05 16:09:36 +01:00
|
|
|
|
2023-12-27 06:22:49 +00:00
|
|
|
- Show details of nodes in a [n]amespace:
|
2020-10-05 16:09:36 +01:00
|
|
|
|
2023-12-27 06:22:49 +00:00
|
|
|
`kubectl describe nodes --namespace {{namespace}}`
|
2020-10-05 16:09:36 +01:00
|
|
|
|
2023-12-27 06:22:49 +00:00
|
|
|
- Show the details of a specific pod in a [n]amespace:
|
2020-10-05 16:09:36 +01:00
|
|
|
|
2023-12-27 06:22:49 +00:00
|
|
|
`kubectl describe pods {{pod_name}} --namespace {{namespace}}`
|
2020-10-05 16:09:36 +01:00
|
|
|
|
2023-12-27 06:22:49 +00:00
|
|
|
- Show the details of a specific node in a [n]amespace:
|
2020-10-05 16:09:36 +01:00
|
|
|
|
2023-12-27 06:22:49 +00:00
|
|
|
`kubectl describe nodes {{node_name}} --namespace {{namespace}}`
|
2020-10-05 16:09:36 +01:00
|
|
|
|
2023-12-27 06:22:49 +00:00
|
|
|
- Show details of Kubernetes objects defined in a YAML manifest [f]ile:
|
2020-10-05 16:09:36 +01:00
|
|
|
|
2023-12-27 06:22:49 +00:00
|
|
|
`kubectl describe --file {{path/to/manifest.yaml}}`
|