Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
breaking changes
Previously, setting
enable_cluster_autoscaler = true
turned on tagging sufficient for the Kubernetes Cluster Autoscaler to discover and manage the node group, and also added a policy to the node group worker role that allowed the workers to perform the autoscaling function. Since pods by default use the EC2 instance role, which in EKS node groups is the node group worker role, this allowed the Kubernetes Cluster Autoscaler to work from any node, but also allowed any rogue pod to perform autoscaling actions.With this release,
enable_cluster_autoscaler
is deprecated and its functions are replaced with 2 new variables:cluster_autoscaler_enabled
, whentrue
, causes this module to perform the labeling and tagging needed for the Kubernetes Cluster Autoscaler to discover and manage the node groupworker_role_autoscale_iam_enabled
, whentrue
, causes this module to add the IAM policy to the worker IAM role to enable the workers (and by default, any pods running on the workers) to perform autoscaling operationsGoing forward, we recommend not using
enable_cluster_autoscaler
(it will eventually be removed) and leavingworker_role_autoscale_iam_enabled
at its default value offalse
. If you want to use the Kubernetes Cluster Autoscaler, setcluster_autoscaler_enabled = true
and use EKS IAM roles for service accounts to give the Cluster Autoscaler service account IAM permissions to perform autoscaling operations. Our Terraform module terraform-aws-eks-iam-role is available to help with this.what
random_pet
keeperswhy
main.tf
was too complex_enabled
at the endreferences