Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 853 Bytes

README.md

File metadata and controls

45 lines (28 loc) · 853 Bytes

Kloroform

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

Usage

Kloroform can be used to either scale deployments down or back up

Scaling down

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

Scaling back up

To scale back up all deployments in a cluster:

./kloroform -wake

Specifying namespaces and kubeconfig follows the same pattern as for scaling down