-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
feat: support for capacity_type and list of instance_types in node_groups #1129
feat: support for capacity_type and list of instance_types in node_groups #1129
Conversation
da8ac42
to
10aa2de
Compare
I need this ;) please merge ;) |
Thanks for the PR @jonathan-mothership, we waiting this capabilities since multiple month, strongly appreciate. I can't wait the merge 💯 |
Please merge until some known incompatibilities, currently has to fork the fork to use spot managed node groups |
Could we get a review of this? @max-rocket-internet @barryib @mjwilkerson-strateos |
Sorry for the delay. I'll review this in the next couple of days. |
Any updates on this merge @barryib; thanks by the way for your hardwork; you as well @jonathan-mothership!! |
I'm on it. |
@jonathan-mothership thanks for working on this. Can you please update your branch and resolve conflicts. I labeled this PR as a breaking change, because this will force to rebuild existing MNG. |
…ship/terraform-aws-eks into nodegroups/capacity_type
@barryib all up-to-date! |
@barryib do you have a ballpark idea of when this is likely to be released? |
Been using this for a week now and it certainly works :) (just merged it in and gave it a list of |
@barryib Any chance this will be merged in the near future? Thanks! |
@barryib - Any chance we can get a merge this week? Looking to deploy a fleet of clusters with some Spot node groups. Thank you! |
Any chance to speedup review of this PR and have it eventually merged? Thanks for support! |
Thanks @jonathan-mothership for your contribution and for your patience. |
Thanks @jonathan-mothership. @barryib when will it be released with new tag? |
Just shipped v14.0.0. |
@barryib @jonathan-mothership this breaks support for LTs that got added by me with #997 and v13.1.0 ! when using an LT, you cannot set instance-type on the MNG itself !
when using v14.0, terraform will try to update all MNG, which it shouldnt in case of LT. furthermore, it will fail with
|
Linking this comment to your issue (#1211) for traceability.
This was understood to be a breaking change. Since the underlying API supports specifying multiple types, the changes here to accepting multiple types warranted the key name change. Regardless, at the time of release of the changes to the provider, the
This is partially true, you can specify one instance type on either the LC or the MNG, but not both, however multiple types is only supported on the MNG API call. See the docs quote below for the official language.
This change shouldn't affect your ability to use launch templates with MNGs.
I suspect this is because you are specifying an instance type in your launch template as well as on the MNGs. From the docs:
FWIW I sympathize with those having to recreate MNGs, it's not fun and sometimes just isn't an option. |
the
exactly! but your change will always set the instance_type on the MNG. either from user-supplied vars or the eks modules default will be taken. thereby leading to a broken LT-support as API will always error
no, the eks modules default is taken https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/local.tf#L42 |
…ules#1129) BREAKING CHANGES: To add add SPOT support for MNG, the `instance_type` is now a list and renamed as `instance_types`. This will probably rebuild existing Managed Node Groups.
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
PR o'clock
Description
capacity_type
to leverage the new AWS provider feature for spot instances in managed node groups.node_group
map, defaulting to a list with the instance type inworkers_group_defaults
.These features are available in the latest v3 release of the AWS provider, so the
required_providers
version foraws
was pushed to3.19.0
.With these changes, I was able to switch my existing node groups to using spot with a custom launch configuration so we can pass our
user_data
!Checklist