Launching eks node with spot ec2

1

I have an EKS setup with yaml file configured to launch a node with on demand type g4dn. Since its an expensive ec2 I have decided to launch spot g4dn but I couldn't figure out how to specify in my yaml file to use spot ec2 instead of on-demand and using self managed node. Any suggestion would be helpful. Thanks

Attaching my yaml file code -----

nodeGroups:

  • name: ng-cpu-group01 instanceType: g4dn.xlarge desiredCapacity: 1 minSize: 1 maxSize: 4 labels: app.pixel/turn: "true" app.pixel/envoy: "true"
Abhinav
asked a year ago327 views
2 Answers
-1

Karpenter is an option for EKS Cluster autoscaling, which gives “Price Optimized Allocation strategy” with EC2 Spot. The configuration is mapped to yaml files. https://aws.github.io/aws-eks-best-practices/karpenter/ https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-allocation-strategy.html

AWS
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions