-
Notifications
You must be signed in to change notification settings - Fork 539
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
eks: allow specifying multiple instance types for AWSManagedMachinePool #3569
eks: allow specifying multiple instance types for AWSManagedMachinePool #3569
Conversation
@jashandeep-sohi: This issue is currently awaiting triage. If CAPA/CAPI contributors determines this is a relevant issue, they will accept it by applying the The 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. |
Welcome @jashandeep-sohi! |
Hi @jashandeep-sohi. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
d424fb9
to
96ac252
Compare
Hi @jashandeep-sohi, thanks for the PR. Agree that it will be good to support specifying multiple instance types for AWSMMP. My initial thoughts
|
Sounds good to me.
I see. This is definitely a better direction to go, however as far as I can tell it doesn't cover multiple instance types. Looks like in I just needed a quick and easy way to showcase that this controller could handle managed EKS nodes w/ multiple spot instance types in a prototype, so I was looking for the smallest diff. |
This would be good to discuss at the office hours on Monday, wdyt? |
Sounds great. @jashandeep-sohi, there is a CAPA office hr on Monday 9am Pacific (7/11/22). We will discuss this issue and capture the notes (in case you cannot make it). |
@jashandeep-sohi, we had discussion during today's office hr. There are two options depending on timeline.
The first option is preferred as adding a field and deprecating soon after is not ideal but it may take time to merge launch template PR. Is the capability of supporting multiple instance types a blocker/urgent for your team? Based on your previous comment that it can wait for v1beta2 API, I didn't think so but want to confirm. |
Thanks for the update! Yes, that's right, this is not exactly a blocker for us atm since we can just carry on using this patch internally. But I wouldn't want to do that for too long either. So it is a priority, but I agree that incorporating it via option 1 would be better in the long run. /close |
@jashandeep-sohi: Closed this PR. 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. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Adds a new field to
AWSManagedmachinePool
calledspec.instanceTypeList
that let's you specify a list of instance types that the underlying node group should use. This is primarily useful forspec.capacityType: spot
, where specifying a set of instances increases your odds of finding an adequate instance, but there's nothing stopping you from using it withspec.capacityType: onDemand
. More here https://docs.aws.amazon.com/eks/latest/userguide/managed-node-groups.html#managed-node-group-capacity-typesFor backwards compatibility (and to avoid confusion),
spec.instanceType
is left as-is, but it's made mutually exclusive withspec.instanceTypeList
so only one can be set.Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):#2701 had this as a request, but it was never added.
Special notes for your reviewer: I've named it
instanceTypeList
instead ofinstanceTypes
to make it visually different frominstanceType
to avoid any confusion, but I'm not too strongly attached to that if you want to change it.Checklist: