-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
/kind feature
1. Describe IN DETAIL the feature/behavior/change you would like to see.
It would be nice to have the ability to define Scheduled Actions as part of kops instance group configuration.
Use case: scaling down the IGs which use spot instances during work hours or when there's a high spot interruption rate and scale up the on-demand IGs instead, then reverse it for the night time.
Currently this requires managing scheduled actions manually or, say, via Terraform, which isn't nice, because they need manual reconfiguration when the IGs (and, as a result, ASGs) are added or deleted or their names change. Having it managed by kops will make things cleaner and more convenient.
2. Feel free to provide a design supporting your feature request.
It should probably be a new section in the instance group spec and new code to handle the respective cloud provider resources. Some thought will be required to make it compatible and avoid conflicts with the existing maxSize and minSize parameters.