kubectl cluster-info dump

Dumps cluster info out suitable for debugging and diagnosing cluster problems. By default, dumps everything to stdout. You can optionally specify a directory with --output-directory. If you specify a directory, kubernetes will build a set of files in that directory. By default only dumps things in the 'kube-system' namespace, but you can switch to a different namespace with the --namespaces flag, or specify --all-namespaces to dump all namespaces

Options

NameDescription
--allow-missing-template-keysIf true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats
-o, --output <Output Format>Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-file
--template <arg>Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]
-A, --all-namespacesIf true, dump all namespaces. If true, --namespaces is ignored
--namespaces <Namespaces (Comma separated)>A comma separated list of namespaces to dump
--output-directory <arg>Where to output the files. If empty or '-' uses stdout, otherwise creates a directory hierarchy in that directory
--pod-running-timeout <Length of Time>The length of time (like 5s, 2m, or 3h, higher than zero) to wait until at least one pod is running
--show-managed-fieldsIf true, keep the managedFields when printing objects in JSON or YAML format