-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any luck with manually creating EC2 Spot Fleet ? #5797
Comments
I will answer myself: I have successfully created Spot Fleet by manually supplying userdata and tags configuration. This method is klunky and less flexible, but with some terraforming should do the job. The main problem I wish to fix by using this is assuring capacity of our small clusters consisting of only spot instances. |
@zytek Would you mind sharing your steps, possibly in a gist to help the community. If there are any guide you followed please share. Thanks |
@rverma-nikiai here it is - terraform manifest that creates spot fleet: https://gist.github.com/zytek/d1e49e97c0ff1dcb965ab712351b035c FYI this could be cleaner with terraform 0.12 when they fix tags with dots in names, so copying tags from an instance to launch configuration would be easier without so much copy-pasting :) |
@zytek Thanks for this, wondering if you got this working with cluster-autoscaler. Linking kubernetes/autoscaler#838 may be relevant |
@rverma-nikiai no - for cluster-autoscaler I have provisioned separate ASG through kops and only those are autoscaled - and I use spot fleets for "static" portion of the cluster. I plan to experiment with EC2 Fleets and ASG (as they are supported now) in the near future - it will probably end up in similar hack - creating Fleet ASG via terraform based on "normal" ASG from kops, at least until kops gains support for launch templates and fleets. |
@zytek Thanks for insight. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
I think this should be resolved now by #6277 |
@wanghanlin: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I'd like to ask if anyone had luck with overcoming #1784 and manually creating Spot Fleet using userdata from regular
kops
-created AutoScaling groups. From a quick glance I don't see why this would not work and I am willing to try to do this later this week. It seems that there is nothing instance-specific in userdata apart from NodeLabels. Correct me if I'm wrong. ;-)Until #1784 is implemented I could live with a script/terraform config that would create Spot Fleets from regular ASGs to ease capacity planning.
The text was updated successfully, but these errors were encountered: