How to Find Out Cluster Info in Kubernetes

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:

  1. What address the cluster is running from
  2. Where the CoreDNS is running from

Example use of KubeCtl Cluser Info

kubectl cluster-info will return the following:

$ kubectl cluster-info

Kubernetes master is running at
CoreDNS is running at

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.

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