Find the "chonkiest" nodes with this kubectl plugin.
This plugin provides a single command to interact with your Kubernetes cluster.
The chonk
command returns all the node(s) with the highest number of CPU cores, and all the node(s) with the largest amount of memory.
[user@hostname:~]
% kubectl chonk
NODE RESOURCE VALUE
gke-cluster-cpu2mem1-alpha cpu 2
gke-cluster-cpu2mem1-beta cpu 2
gke-cluster-cpu1mem3-alpha memory 3785940Ki
gke-cluster-cpu1mem3-beta memory 3785940Ki
You can install (and uninstall) this plugin by using krew, or by downloading the binary manually.
Clone this repository and run the following.
kubectl krew install --manifest=.krew.yaml
You can uninstall the plugin with krew
as well.
kubectl krew uninstall chonk
Download the latest GitHub release for your operating system and architecture.
Move the binary to your PATH
to get started.
To completely uninstall the plugin, delete the binary from your PATH
.
- Ahmet Alp Balkan's YouTube series on kubectl plugins
- The official sample-cli-plugin repository as the basis for this repository