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
질문됨 일 년 전337회 조회
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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠