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
preguntada hace un año337 visualizaciones
2 Respuestas
-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
respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas