tldr/pages/common/kubectl-describe.md

25 lines
733 B
Markdown
Raw Normal View History

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>.
- Show details of pods in a [n]amespace:
2020-10-05 16:09:36 +01:00
`kubectl describe pods --namespace {{namespace}}`
2020-10-05 16:09:36 +01:00
- Show details of nodes in a [n]amespace:
2020-10-05 16:09:36 +01:00
`kubectl describe nodes --namespace {{namespace}}`
2020-10-05 16:09:36 +01:00
- Show the details of a specific pod in a [n]amespace:
2020-10-05 16:09:36 +01:00
`kubectl describe pods {{pod_name}} --namespace {{namespace}}`
2020-10-05 16:09:36 +01:00
- Show the details of a specific node in a [n]amespace:
2020-10-05 16:09:36 +01:00
`kubectl describe nodes {{node_name}} --namespace {{namespace}}`
2020-10-05 16:09:36 +01:00
- Show details of Kubernetes objects defined in a YAML manifest [f]ile:
2020-10-05 16:09:36 +01:00
`kubectl describe --file {{path/to/manifest.yaml}}`