Analyze Verrazzano Clusters
Verrazzano provides the
vz analyze command-line tool, which assists in troubleshooting issues in your environment. You can use it to analyze a cluster as well as, to analyze a cluster snapshot captured by the
vz bug-report tool. For detailed information about
vz bug-report, see here.
vz analyze command-line tool analyzes the cluster or a cluster snapshot, reports the issues found, and prescribes related actions to take. Users, developers, and Continuous Integration (CI) can use this tooling to quickly identify the root cause of encountered problems, determine mitigation actions, and provide a sharable report with other users or tooling.
Set up the CLI tool
To set up the
vz command-line tool, follow the steps here.
To analyze a Kubernetes cluster:
$ vz analyze
Analyze cluster snapshots
vz bug-reporttool to capture a cluster snapshot.
To create a bug report in a TAR file named
my-bug-report.tar.gzand extract it to a directory
$ vz bug-report my-bug-report.tar.gz mkdir my-cluster-snapshot tar -xvf my-bug-report.tar.gz -C my-cluster-snapshot
vz analyzetool to analyze the cluster snapshot.
To perform an analysis of the cluster snapshot under
$ vz analyze --capture-dir my-cluster-snapshot
Use the vz analyze tool to analyze multiple snapshots
vz analyze tool will find and analyze all cluster snapshot directories found under a specified root directory.
This lets you create a directory to hold the cluster snapshots of related clusters in subdirectories, which the tool can then analyze.
my-cluster-snapshots CAPTURE_DIR-1 cluster-snapshot ... CAPTURE_DIR-2 cluster-snapshot ...
To perform an analysis of the clusters under
$ vz analyze --capture-dir my-cluster-snapshots
Use the following syntax to run
vz commands from your terminal window.
$ vz analyze [flags]
||Directory holding the captured data.|
||Help for the
||Name of the report output file. (Default
||The format of the report output. Valid report formats are “summary” and “detailed”. (Default “summary”)|
||Enable verbose output.|
These flags apply to all the commands.
||The name of the kubeconfig file context to use.|
||Path to the kubeconfig file to use.|
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.