A CLI tool written in Go that allows to scale down all or up all deployments in a Kubernetes cluster
This code is based on this sample
Kloroform can be used to either scale deployments down or back up
To scale down all deployments 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 in a cluster:
./kloroform -wake
Specifying namespaces and kubeconfig follows the same pattern as for scaling down