HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

kubectl cluster-info — Display endpoint information about the Kubernetes master and services in the cluster. More informati

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandendpointcliinformationkubectl cluster-infoaboutdisplay

Problem

How to use the kubectl cluster-info command: Display endpoint information about the Kubernetes master and services in the cluster. More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_cluster-info/>.

Solution

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}}

Code Snippets

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}}

Context

tldr-pages: common/kubectl cluster-info

Revisions (0)

No revisions yet.