fix: Add missing mixed_instances_policy parameter to the root module (#1808)

This commit is contained in:
Bryant Biggs
2022-01-24 15:19:13 -05:00
committed by GitHub
parent c45adce32e
commit 4af77f244a
2 changed files with 31 additions and 0 deletions

View File

@@ -118,6 +118,36 @@ module "eks" {
EOT
}
mixed = {
name = "mixed"
min_size = 1
max_size = 5
desired_size = 2
bootstrap_extra_args = "--kubelet-extra-args '--node-labels=node.kubernetes.io/lifecycle=spot'"
use_mixed_instances_policy = true
mixed_instances_policy = {
instances_distribution = {
on_demand_base_capacity = 0
on_demand_percentage_above_base_capacity = 20
spot_allocation_strategy = "capacity-optimized"
}
override = [
{
instance_type = "m5.large"
weighted_capacity = "1"
},
{
instance_type = "m6i.large"
weighted_capacity = "2"
},
]
}
}
# Complete
complete = {
name = "complete-self-mng"