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>.
|
|
|
|
|
|
|
|
- Show details of pods in a namespace:
|
|
|
|
|
|
|
|
`kubectl describe pods -n {{namespace}}`
|
|
|
|
|
|
|
|
- Show details of nodes in a namespace:
|
|
|
|
|
|
|
|
`kubectl describe nodes -n {{namespace}}`
|
|
|
|
|
|
|
|
- Show the details of a specific pod in a namespace:
|
|
|
|
|
|
|
|
`kubectl describe pods {{pod_name}} -n {{namespace}}`
|
|
|
|
|
|
|
|
- Show the details of a specific node in a namespace:
|
|
|
|
|
|
|
|
`kubectl describe nodes {{node_name}} -n {{namespace}}`
|
|
|
|
|
|
|
|
- Show details of Kubernetes objects defined in a YAML manifest:
|
|
|
|
|
2022-10-12 20:18:05 +05:30
|
|
|
`kubectl describe -f {{path/to/manifest.yaml}}`
|