-
Notifications
You must be signed in to change notification settings - Fork 640
✨ Add support for multiple instance types in AWSManagedMachinePool #5732
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
base: main
Are you sure you want to change the base?
✨ Add support for multiple instance types in AWSManagedMachinePool #5732
Conversation
|
[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 |
|
Welcome @moko-poi! |
|
Hi @moko-poi. Thanks for your PR. I'm waiting for a github.com 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-sigs/prow repository. |
|
/ok-to-test |
richardcase
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, thanks @moko-poi .
Just the one comment.
afa49b9 to
ecb9ac3
Compare
|
I've addressed the review comments and the PR is ready for another look. Could you please review when you get a chance? Thank you! |
| // uses the order of instance types to determine which instance type to use first when fulfilling capacity. | ||
| // See AWS documentation https://docs.aws.amazon.com/eks/latest/userguide/managed-node-groups.html#managed-node-group-capacity-types | ||
| // for more information. | ||
| // At most one of InstanceType or InstanceTypes may be specified. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd maybe remove this comment as the deprecation notice could suffice. wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@richardcase
Good point! Removed the redundant comment. The deprecation notice on InstanceType makes it clear enough that users should migrate to InstanceTypes. Thanks for the feedback!
3ac7f79
|
this looks good to me @moko-poi . Just one comment, let me know what you think. |
|
/test ? |
|
@richardcase: The following commands are available to trigger required jobs: The following commands are available to trigger optional jobs: Use 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-sigs/prow repository. |
|
/test pull-cluster-api-provider-aws-e2e-eks |
serngawy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me in general, one comment as better field desc.
| // InstanceTypes specifies a list of AWS instance types for the node group. | ||
| // The order of instance types specified determines priority of picking that instance type. | ||
| // This is also influenced by the CapacityType. For On-Demand capacity, the allocation strategy | ||
| // uses the order of instance types to determine which instance type to use first when fulfilling capacity. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // uses the order of instance types to determine which instance type to use first when fulfilling capacity. | |
| // uses the order of instance types to determine which instance type to use first when fulfilling capacity for ex; c5.large, c4.large, and c3.large . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What type of PR is this?
What this PR does / why we need it:
This PR adds support for specifying multiple instance types in
AWSManagedMachinePoolby introducing a newinstanceTypesfield. This enhancement improves availability, especially when using Spot instances with EKS Managed Node Groups.Key changes:
instanceTypes(plural) field to specify a list of instance typesinstanceType(singular) field for backward compatibilityWhich issue(s) this PR fixes:
Fixes #3585
Special notes for your reviewer:
instanceTypeandinstanceTypesare mutually exclusive, enforced by webhook validationinstanceTypesto v1beta1, the first element is used asinstanceTypeinstanceTypeandinstanceTypesare rejected, consistent with existing validationRelease note: