LinuxCommandLibrary

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.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community