Update cheatsheets

This commit is contained in:
ivuorinen
2025-10-20 00:21:08 +00:00
parent 9c64f72b0c
commit c3f5e8d7ab
19 changed files with 409 additions and 8 deletions

25
tldr/kubectl-cluster-info Normal file
View File

@@ -0,0 +1,25 @@
---
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 standard output (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}}`