Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 1.22 KB

autoscaling.md

File metadata and controls

29 lines (20 loc) · 1.22 KB

Autoscaling

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. 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.

The helm chart for the cluster-autoscaler requires some specific settings to work in an EKS cluster. These settings are supplied via YAML values file when installing the helm chart. Here is an example values file:

rbac:
  create: true

sslCertPath: /etc/ssl/certs/ca-bundle.crt

cloudProvider: aws
awsRegion: YOUR_AWS_REGION

autoDiscovery:
  clusterName: YOUR_CLUSTER_NAME
  enabled: true

To install the chart, simply run helm with the --values option:

helm install stable/cluster-autoscaler --values=path/to/your/values-file.yaml