Horizontal Pod Autoscaler on DOKS
Clone the repo:
git clone git@github.com:snormore/doks-examples
cd doks-examples/hpa
Create a cluster with default name hpa-demo
and install HPA with an example that uses CPU, waits for replicas to be scaled up, stops using CPU, and waits for replicas to scale down.
script/up
You can specify a cluster name with:
script/up my-cluster-name
The up
script should be idempotent, so feel free to run more than once if something breaks.
script/down