Add worker group option to protect from scale in. (#135)

See [#134](https://github.com/terraform-aws-modules/terraform-aws-eks/issues/134)
This commit is contained in:
Samuel Fredrickson
2018-09-18 02:24:52 -07:00
committed by Max Williams
parent 0448350468
commit b6f6a82352
4 changed files with 11 additions and 7 deletions

View File

@@ -2,6 +2,7 @@
Autoscaling of worker nodes can be easily enabled by setting the `autoscaling_enabled` variable to `true` for a worker group in the `worker_groups` map.
This will add the required tags to the autoscaling group for the [cluster-autoscaler](https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler).
One should also set `protect_from_scale_in` to `true` for such worker groups, to ensure that cluster-autoscaler is solely responsible for scaling events.
You will also need to install the cluster-autoscaler into your cluster. The easiest way to do this is with [helm](https://helm.sh/).