You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
4
+
This will add the required tags to the autoscaling group for the [cluster-autoscaler](https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler).
5
+
6
+
You will also need to install the cluster-autoscaler into your cluster. The easiest way to do this is with [helm](https://helm.sh/).
7
+
8
+
The [helm chart](https://github.com/helm/charts/tree/master/stable/cluster-autoscaler) 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:
9
+
10
+
```yaml
11
+
rbac:
12
+
create: true
13
+
14
+
sslCertPath: /etc/ssl/certs/ca-bundle.crt
15
+
16
+
autoDiscovery:
17
+
clusterName: YOUR_CLUSTER_NAME
18
+
enabled: true
19
+
```
20
+
21
+
To install the chart, simply run helm with the `--values` option:
public_ip =false# Associate a public ip address with a worker
99
99
kubelet_node_labels =""# This string is passed directly to kubelet via --node-labels= if set. It should be comma delimited with no spaces. If left empty no --node-labels switch is added.
100
100
subnets =""# A comma delimited string of subnets to place the worker nodes in. i.e. subnet-123,subnet-456,subnet-789
101
+
autoscaling_enabled =false# Sets whether policy and matching tags will be added to allow autoscaling.
0 commit comments