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
已提问 1 年前338 查看次数
2 回答
-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
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则