Skip to content
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

Added support for AWS inf2 instance types #5529

Merged
merged 5 commits into from
Mar 8, 2023

Conversation

mmcclean-aws
Copy link
Contributor

Added support for the AWS Inferentia 2 instance types based on the NeuronCore v2 chip architecture

What type of PR is this?

/kind feature

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #5528

Special notes for your reviewer:

Does this PR introduce a user-facing change?

NONE

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


Added support for the AWS Inferentia 2 instance types based on the NeuronCore v2 chip architecture
@k8s-ci-robot k8s-ci-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Feb 22, 2023
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Feb 22, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Feb 22, 2023
@k8s-ci-robot
Copy link
Contributor

Welcome @mmcclean-aws!

It looks like this is your first PR to kubernetes/autoscaler 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/autoscaler has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. area/cluster-autoscaler labels Feb 22, 2023
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. area/vertical-pod-autoscaler and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Feb 22, 2023
@mmcclean-aws mmcclean-aws changed the title Added support for in2 instance types Added support for inf2 instance types Feb 22, 2023
@mmcclean-aws mmcclean-aws changed the title Added support for inf2 instance types Added support for AWS inf2 instance types Feb 22, 2023
@ferboz
Copy link

ferboz commented Feb 22, 2023

/test all

@k8s-ci-robot
Copy link
Contributor

@ferboz: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/test all

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.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Feb 22, 2023
@jbartosik
Copy link
Collaborator

/hold

I don't understand why this PR is changing VPA files. This seems weird because there is a change in a vendored file but there are no corresponding changes in go.mod / go.sum

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 23, 2023
@gjtempleton
Copy link
Member

Agree with @jbartosik .

If you're needing to update the vendored AWS SDK for the CA, you can see instructions on doing that here: https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler/cloudprovider/aws#using-the-aws-sdk-vendored-in-the-aws-cloudprovider

@mmcclean-aws
Copy link
Contributor Author

thanks @gjtempleton and @jbartosik. Does that mean that in order to add a new instance type this repo doesn't need to be updated ? All you need to do is either wait till the AWS SDK is updated or follow the instructions outlined in the link shared ?

@x13n
Copy link
Member

x13n commented Feb 28, 2023

IIUC you need to update the sdk based on the instructions from the link. This change should really be limited to changes within cluster-autoscaler/cloudprovider/aws dir. Assigning AWS owners for this change.

/assign @gjtempleton @jaypipes @drmorr0

FWIW, we should really do #4878 (and perhaps a similar change for VPA) to limit confusion in the future.

@gjtempleton
Copy link
Member

There's a couple of bits necessary for this, the update to the hardcoded list which you've already included and following the instructions linked to previously to update the AWS SDK version we vendor in to the AWS cloudprovider implementation for the CA.

The changes to the VPA related files should be rolled back as @jbartosik and @x13n say.

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 6, 2023
@mmcclean-aws
Copy link
Contributor Author

I have now rolled back the VPA related files as requested

Co-authored-by: Guy Templeton <[email protected]>
@ellistarn
Copy link
Contributor

Thanks for the help on this @gjtempleton! In the short term, we may need to continue to support ad-hoc manual support for preview EC2 instance types. I'm happy to review and support PRs to the AWS provider for this, if you're comfortable continuing this practice.

@gjtempleton
Copy link
Member

Thanks.
Removing the hold as now only touching expected CA files.
/unhold
/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Mar 8, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gjtempleton, mmcclean-aws

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 8, 2023
@gjtempleton
Copy link
Member

Thanks @ellistarn
More generally, will keep an eye out for future PRs generating this instance list potentially removing these ad-hoc ones, if it becomes a common occurrence then we may want to look at some method for automating pulling in these instance types which aren't yet publicly listed by the SDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/cluster-autoscaler area/vertical-pod-autoscaler cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing support for AWS inf2 instance types
9 participants