kubectl-cluster-info

displays the addresses of the control plane and cluster services

TLDR

Display cluster info
$ kubectl cluster-info
Show detailed cluster info
$ kubectl cluster-info dump
Dump cluster info to directory
$ kubectl cluster-info dump --output-directory=[path]
Dump specific namespaces
$ kubectl cluster-info dump --namespaces=[default],[kube-system]

SYNOPSIS

kubectl cluster-info [subcommand] [options]

DESCRIPTION

kubectl cluster-info displays the addresses of the control plane and cluster services. The dump subcommand collects cluster state information for debugging, including logs from all pods and cluster metadata.

PARAMETERS

dump

Dump cluster state for debugging.
--output-directory path
Directory to dump files.
--namespaces list
Namespaces to include in dump.
--all-namespaces
Include all namespaces.

INSTALL

sudo apt install kubectl
sudo pacman -S kubectl
sudo apk add kubectl
brew install kubectl
nix profile install nixpkgs#kubectl

CAVEATS

Requires a valid kubeconfig with access to the cluster. The dump subcommand can produce very large output for clusters with many pods. Use `--namespaces` to limit scope. Dump output may contain sensitive information like environment variables and secrets.

SEE ALSO

kubectl(1), kubectl-get(1)