atlassian / escalator

Escalator is a batch or job optimized horizontal autoscaler for Kubernetes
Apache License 2.0
646 stars 58 forks source link

Add AWS EC2 Spot functionality to Escalator #188

Closed haugenj closed 4 years ago

haugenj commented 4 years ago

PR for issue #183

Adds two new optional parameters for when launch templates are used: Lifecycle and InstanceTypeOverrides. Then modifies the CreateFleet request based on these parameters to request either On Demand or Spot instances. Additionally makes a request to 'DescribeAutoScalingGroups' to get the subnet ids of the ASG. This ensures that requested instances are located in a correct subnet so that they can be attached to the cluster. Finally update the readme to correct the necessary IAM policy permissions.