Cluster Autoscaler¶
The Kubernetes Cluster Autoscaler automatically adjusts the number of nodes in your cluster when pods fail or are rescheduled onto other nodes. The Cluster Autoscaler uses Auto Scaling groups. For more information, see Cluster Autoscaler on AWS.
Usage¶
Cluster Autoscaler can be deployed by enabling the add-on via the following.
You can optionally customize the Helm chart that deploys Cluster Autoscaler via the following configuration.
enable_cluster_autoscaler = true
cluster_autoscaler = {
name = "cluster-autoscaler"
chart_version = "9.29.0"
repository = "https://kubernetes.github.io/autoscaler"
namespace = "kube-system"
values = [templatefile("${path.module}/values.yaml", {})]
}
Verify cluster-autoscaler pods are running.