- 1 Minute to read
- Print
- PDF
Troubleshoot Zesty Disk for Kubernetes
- 1 Minute to read
- Print
- PDF
This topic describes how to use the Zesty Kubectl plugin to troubleshoot Zesty Disk for K8s.
You can use the plugin to generate:
A log file that may be required for support.
A compressed log file will be created under the path:
<tmp folder>/zesty-k8s-logs-and-resources-<date>.zip
A CSV with relevant workload and storage information for a Kubernetes cluster.
This CSV provides insights into workload types, storage capacities, your storage footprint and more. The CSV includes information about the workload name and type, the Pod name, PV name and size, usage, and utilization.
The CSV output is sorted by PV size (descending) and Zesty Disk PVs are not included.
To install Krew, see Windows or MacOS.
To use the plugin, you need to install it first.
Prerequisites
Kubectl is installed
To install the Zesty Kubectl plugin:
Add the Zesty repository to Krew index:
kubectl krew index add zestyIndex https://github.com/zesty-co/kubectl-plugin.git
Verify the repo was added successfully:
kubectl krew index list
Install the plugin:
kubectl krew install zestyIndex/zesty
Verify that the plugin was installed successfully:
kubectl krew list
Validate the Kubectl context:
kubectl config current-context
The current cluster’s name will be displayed.
Collect the logs:
kubectl zesty logs collect
To use the kubectl plugin:
To collect logs for Customer Support use, run this command:kubectl zesty logs collect
The following table describes how to use the plugin to export information about cluster PVs to a CSV:
To export this | Run this command | Example |
---|---|---|
For PVs in all namespaces, with the default output location |
|
|
For PVs in a specific namespace |
|
|
To specify an output path |
|
|
For PVs in a specific namespace and output path |
|
|
Additional filters |
|
|