-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
k3s: GPU Passthrough for Nvidia / AMD / Intel #288037
Comments
I was unable to get the official NVIDIA device plugin to work, since all the heavy lifting is already done in containerd and generating cdi json, I created a device plugin that uses the cdi json and instructs kubernetes to inject the device. |
@OlfillasOdikno thanks, I use your plugin as well for now. I had problems that some containers didn't see libnvml.so.1, nor the generated CDIs.
Question regarding scope: does this issue inlcude shared GPU use? I'm not sure how involved it is. |
After four months of dead ends and failed hacks, I've arrived at this configuration for my k3s node and its GeForce 3070: In NixOS
In Kubernetes
Stray notes
Nvidia monoculture aside, I also have a Radeon RX 7800 in my desktop. A brief web-search reveals a plugin for AMD GPUs, but I need more time to look into that. |
Little did I know that is the official AMD plugin. I made a one-node Some caveats:
EDIT: Same story with Intel GPUs. All one needs is the device plugin, which I've been using for more than a year. |
This issue is for tracking GPU pass through in K3s.
K3s supports GPU pass through but not in NixOS K3s (last time I tried).
I don't know if it is a solved issue. I think it is not, but:
(Let me know if it works for you. I will test too. And leave my notes here.)
Last time I tried, I had issues with nix paths, ldcache in Nvidia driver. I got lost in the process. I will keep updating this issue until:
GPU pass through is:
Other references:
The text was updated successfully, but these errors were encountered: