mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-19 05:01:19 +00:00
Update cheatsheets
This commit is contained in:
25
tldr/kubectl-cluster-info
Normal file
25
tldr/kubectl-cluster-info
Normal 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}}`
|
||||
Reference in New Issue
Block a user