-
Notifications
You must be signed in to change notification settings - Fork 4.4k
(aws-eks): managed nodegroup for spot instances #11827
Description
Amazon EKS now supports provisioning and managing EC2 Spot Instances in managed node groups
https://aws.amazon.com/tw/blogs/containers/amazon-eks-now-supports-provisioning-and-managing-ec2-spot-instances-in-managed-node-groups/
eksctl just introduced the new --spot flag which seems to create a new launch template with spot options and pass this template to create the spot-only nodegroup.
I was wondering how to create similar experience with aws-eks. The Nodegroup L2 construct actually can accept the launch template as the construct property, however, users need to bake their own LT with spot options before they can pass it to NodegroupProps. It doesn't make sense to add a new spot property for NodegroupProps as this is actually a high level abstraction, but making people easily create spot nodegroup with CDK is really helpful.
Some options:
- create
aws-eks-patternsL3 and makeSpotNodegroupa L3 construct - let's create a 3rd party construct lib like
cdk-eks-spot-nodegroup
I'd vote option 1.
@iliapolo wdyt?
ref: https://docs.aws.amazon.com/eks/latest/userguide/managed-node-groups.html
- 👋 I may be able to implement this feature request
-
⚠️ This feature might incur a breaking change
This is a 🚀 Feature Request