Skip to content

(aws-eks): managed nodegroup for spot instances #11827

@pahud

Description

@pahud

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:

  1. create aws-eks-patterns L3 and make SpotNodegroup a L3 construct
  2. 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

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-eksRelated to Amazon Elastic Kubernetes Serviceeffort/mediumMedium work item – several days of effortfeature-requestA feature should be added or improved.p1

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions