LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

kubectl-cluster-info

displays the addresses of the control plane and cluster services

TLDR

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

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.

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

Copied to clipboard
Kai