-
Notifications
You must be signed in to change notification settings - Fork 220
Add GPU/Accelerator support to VMs in GCPMachineTemplate #1341
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
Add GPU/Accelerator support to VMs in GCPMachineTemplate #1341
Conversation
|
Hi @jwmay2012. 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-sigs/prow repository. |
✅ Deploy Preview for kubernetes-sigs-cluster-api-gcp ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
cddf743 to
b0eb05e
Compare
|
Thanks @jwmay2012 /ok-to-test |
|
@jwmay2012 - would you be able to run |
b0eb05e to
7b8e870
Compare
|
Could you please provide an estimate of when this change might be included in a release? |
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.
Just a minor comment, otherwise it looks good to me.
7b8e870 to
2358039
Compare
|
Thanks @jwmay2012. /lgtm |
|
We good to merge? Been running a custom CAPG with these changes for a while and would love to get this upstream :) |
|
@richardcase are you happy with this? If so would you be able to stamp your approval on it? |
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.
/hold defer to @richardcase
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cpanato, jwmay2012 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 |
|
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
|
bump |
|
/cc @elmiko |
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.
makes sense to me
|
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
|
bump |
|
/remove-lifecycle rotten |
|
@dims @richardcase |
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.
Richard is not a maintainer of the project anymore.
Considering @salasberryfin and @cpanato are happy with it, I am happy to remove the hold.
/unhold
|
@jwmay2012 could you please rebase? Thanks! |
|
Or @reyvonger |
2358039 to
aed6b4c
Compare
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.
/lgtm
What type of PR is this?
/kind feature
What this PR does / why we need it:
Adds the ability to configure Guest Accelerators like GPUs in a GCPMachineTemplate
Fixes #289
Special notes for your reviewer:
Tested and creates machines with GPUs correctly. After installing drivers and nvidia container runtime on the node, was able to get the GPU to run successfully in a Pod.
If you try to use an accelerator on the wrong instance type it will have an instance reconcile error from GCP that describes the improper API use.
OnHostMaintenancemust be set toTERMINATEfor GPU enabled machines.https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_instance#guest_accelerator
Confirmed this is correct. Instance reconcile is rejected by GCP otherwise.
I set this field automatically.
TODOs:
Release note: