terraform-aws-modules / terraform-aws-eks

Terraform module to create Amazon Elastic Kubernetes (EKS) resources 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/eks/aws
Apache License 2.0
4.48k stars 4.09k forks source link

Can ASG of EKS Managed Node Group have mixed Spot and On-Demand capacity type? #3215

Open mansingcollis opened 14 hours ago

mansingcollis commented 14 hours ago

Description

I'm using the combination of spot and on-demand instance type in the inEKS Managed Node group to optimize the cost. The documentation https://docs.aws.amazon.com/eks/latest/userguide/managed-node-groups.html says a managed node group with ASG can either contain only On-Demand or only Amazon EC2 Spot Instances. However, the management console does show option to set the combination. So I was wondering if there is any way to set mix of instance types using the module, I tried with passing multiple CapacityType to --node-labels in bootstrap_Extra_args but that is not working.

image

Any help is really appreciated!

bryantbiggs commented 3 hours ago

The console for EKS managed node group or for auto scaling group?