Files
cheatsheet-tldr/tldr/kubectl-cluster-info
2025-10-22 00:20:27 +00:00

26 lines
649 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# kubectl cluster-info
> Display endpoint information about the Kubernetes master and services in the cluster.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_cluster-info/>.
- Show basic cluster information:
`kubectl cluster-info`
- Dump current cluster state to `stdout` (for debugging):
`kubectl cluster-info dump`
- Dump cluster state to a directory:
`kubectl cluster-info dump --output-directory {{path/to/directory}}`
- Use a specific kubeconfig context:
`kubectl cluster-info --context {{context_name}}`