In Kubernetes, a
cluster is a group of machines working together.
By running the
kubectl cluster-info command, we can find out high level information about the Kubernetes cluster, such as:
- What address the cluster is running from
- Where the CoreDNS is running from
Example use of KubeCtl Cluser Info
kubectl cluster-info will return the following:
How to get more information about the cluster
You can also append the keyword
dump to the above command to get a full output about the cluster.
kubectl cluster-info dump
This output can also be piped to a file for later reference, or to view in your favourite code editor/IDE.
kubectl cluster-info dump > file.out