Used to interact with Zesty's resources
Using krew (recommended)
-
Add this repo as a krew index
$ kubectl krew index add zestyIndex https://github.com/zesty-co/kubectl-plugin.git
-
Verify it was added successfully
$ kubectl krew index list INDEX URL default https://github.com/kubernetes-sigs/krew-index.git zestyIndex https://github.com/zesty-co/kubectl-plugin.git
-
Install the plugin:
$ kubectl krew install zestyIndex/zesty
-
Verify a successful installation:
$ kubectl krew list PLUGIN VERSION zestyIndex/zesty v1.0.0
kubectl krew uninstall zestyDownload the latest version from the releases page and unzip the executable to a directory which is accessible on PATH.
Run kubectl zesty --help for available functionality.
Note
If you are on MacOs or Linux and receiving the following error
error: unknown command "zesty" for "kubectl"run the following command to make sure the plugin is executable:
chmod +x ~/.krew/store/zesty/*/kubectl-zestyShows Pod Placement savings data, workload evictability breakdown, and cluster summary by connecting to the Kompass Insights Agent running in your cluster.
Examples:
# Show full pod placement status in table format
kubectl zesty pod-placement status
# Show only the cluster summary
kubectl zesty pod-placement status --summary
# Output as JSON
kubectl zesty pod-placement status -o json
# Use a specific namespace and kubeconfig context
kubectl zesty pod-placement status --namespace zesty-system --context my-cluster
# Pipe to a file without headers
kubectl zesty pod-placement status --no-headers > status.csvFlags:
| Flag | Short | Default | Description |
|---|---|---|---|
--namespace |
"" |
Namespace of the Insights Agent service (auto-detected if empty) | |
--service-name |
"" |
Name of the Insights Agent service (auto-detected if empty) | |
--output |
-o |
table |
Output format: table, json, yaml |
--summary |
false |
Show only the cluster summary | |
--context |
"" |
Kubernetes context to use (defaults to current context) | |
--timeout |
30s |
HTTP request timeout | |
--verbose |
-v |
false |
Enable verbose logging for debugging |
--log-level |
info |
Log level: debug, info, warn, error |
|
--insecure-skip-tls-verify |
false |
Skip TLS certificate verification (not recommended for production) | |
--no-headers |
false |
Omit table headers (useful for CSV-style piping) |
Improved pod-placement status command behavior and error handling.
Added pod-placement status functionality
Fix: EZSwitch auto-migrate
Added ezswitch commands
Added a command to collect persistent volumes' usage and utilization
Logs collection command:
- Improved volumeattachments' collection
Logs collection command:
- Added collection for Zesty's internal Mutator and Extender pods
Compatible with zesty-helm version 1.0.253 (new naming convention for internal Zesty resources)
Logs collection command:
- Bug fix: Displaying an error message and continuing to collect subsequent resource YML or log instead of exiting upon encountering an error.