-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
desired_size
on eks node-group shouldn't be ignored during the lifecycle of an aws_eks_node_group
#1879
Comments
it is a deliberate design decision in order to support the predominant use of scaling services like cluster autoscaler, Karpenter, etc. |
This creates a problem if you are not using any form of autoscaling. For example, my cluster has 3, 6, and 9 for the values of min, desired, and max respectively. I am adjusting the terraform in order to double my clusters capacity. Now I am getting an error that the minimum cannot be larger than desired when using this module. I believe as a workaround I can go and adjust the desired by hand in the console but that defeats the purpose of using terraform. |
we cannot parameterize the lifecycle/ignore_changes block so unfortunately we have taken the direction to ignore desired size changes since this is how the vast majority of users utilize the module |
Perhaps there could be a different node group type? |
not in this module, no - we are doing everything we can currently to avoid any additional complexity overhead. the next breaking change at v19.x will actually remove the custom ASGs and launch templates so we can offload that to our https://github.com/terraform-aws-modules/terraform-aws-autoscaling module |
Okay, I'll wait to see what those changes entail. Thanks for the feedback. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
terraform-aws-eks/modules/eks-managed-node-group/main.tf
Line 339 in ccc4747
desired_size
on eks node-group shouldn't be ignored during the lifecycle of an aws_eks_node_groupThe text was updated successfully, but these errors were encountered: