A CLI tool written in Go that allows to scale down all or up all deployments and statefulsets in a Kubernetes cluster
This code is based on this sample
Kloroform can be used to either scale deployments and statefulsets down or back up
To scale down all deployments and statefulsets in a cluster:
./kloroform
For specific namespaces:
./kloroform -namespaces=mynamespace,myothernamespace
To ignore namespaces:
./kloroform -exceptions=my-namespace,my-other-namespace
Specifying kubeconfig path:
./kloroform -kubeconfig=/home/myuser/.kube/config
To scale back up all deployments and statefulsets in a cluster:
./kloroform -wake
Specifying namespaces and kubeconfig follows the same pattern as for scaling down
To build executables for windows and linux:
bash build.sh