-
-
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
mixed_instances_policy is not working #1807
Comments
please past a terraform module configuration which you are using |
I seem to have the same issue. Following terraform config
this is a copy from the given example in github repo
output seems to show that input should be fine according to examples.
Tho deployed in AWS i see the following ASG. I could be that i am missing something? not sure but it sure seems like @shaibs3 has a point |
This issue has been resolved in version 18.2.3 🎉 |
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. |
Description
i am trying to create a self managed node group with the eks module latest version 18.2.2
i am using mixed_instances_policy to create
mixed_instances_policy = { instances_distribution = { on_demand_base_capacity = "1" on_demand_percentage_above_base_capacity = "100" on_demand_allocation_strategy = "prioritized" } override = [ { instance_type = "m5.2xlarge" }, { instance_type = "c5.2xlarge" }, ] }
along with
use_mixed_instances_policy = true
unfortunatly the plan does not show that the correct policy was created.
looking at the code in node_groups.tf in module "self_managed_node_group"
i see that the variable mixed_instances_policy is not passed to the module so that why it cant work.
if we added a line
mixed_instances_policy = try(each.value.mixed_instances_policy, var.self_managed_node_group_defaults.mixed_instances_policy, null)
to the node_groups.tf this should fix the issue
Versions
Reproduction
Expected behavior
Actual behavior
Terminal Output Screenshot(s)
Additional context
The text was updated successfully, but these errors were encountered: