ocne cluster analyze
Starts a set of tools that collect data from a live Kubernetes cluster, or a cluster dump file, to analyze, and diagnose problems in the cluster.
If no options are specified, the live cluster is analyzed, not a cluster dump file.
ocne cluster analyze
[{-d|--dump-directory} path]
[{-s|--skip-nodes}]
[{-p|--skip-pod-logs}]
[{-v|--verbose}]
Where:
-
{-d|--dump-directory} path -
The directory that includes the cluster dump created using the
ocne cluster dumpcommand. This option is mutually exclusive with the--archiveand--skip-nodesoptions. -
{-s|--skip-nodes} -
Skips collecting and analyzing the data from nodes. This is only valid for analyzing a live cluster, not a cluster dump.
-
{-p|--skip-pod-logs} -
Skips collecting and analyzing the data from pods. This is only valid for analyzing a live cluster, not a cluster dump.
-
-v|--verbose -
Displays more detailed information related to the analysis.
Example 4-31 Analyze a cluster dump in a directory
To start the tools available to analyze a cluster:
ocne cluster analyze --dump-directory $HOME/dump/
Example 4-32 Analyze a cluster dump, displaying more detailed information
To analyze cluster dump files, displaying more detailed output:
ocne cluster analyze --dump-directory $HOME/dump/ --verbose
Example 4-33 Analyze a live cluster
To analyze a running cluster:
ocne cluster analyze
Example 4-34 Analyze a live cluster, skipping node data
To analyze a running cluster without including information from the nodes:
ocne cluster analyze --skip-nodes