Files
cheatsheet-tldr/tldr/kubectl-describe
2025-03-29 00:18:23 +00:00

30 lines
861 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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]}} {{namespace}}`
- Show details of nodes in a namespace:
`kubectl describe nodes {{[-n|--namespace]}} {{namespace}}`
- Show the details of a specific pod in a namespace:
`kubectl describe pods {{pod_name}} {{[-n|--namespace]}} {{namespace}}`
- Show the details of a specific node in a namespace:
`kubectl describe nodes {{node_name}} {{[-n|--namespace]}} {{namespace}}`
- Show details of Kubernetes objects defined in a YAML manifest file:
`kubectl describe {{[-f|--file]}} {{path/to/manifest.yaml}}`