Use index-based device IDs in nvidia device plugin
The CDI spec generated by NixOS uses index-based device names (0, all) not UUIDs. The device plugin must match by using --device-id-strategy=index, otherwise nvidia-container-runtime.cdi fails to resolve CDI devices. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
9192a31204
commit
bb1e1e5af9
1 changed files with 2 additions and 0 deletions
|
|
@ -23,6 +23,8 @@ spec:
|
|||
containers:
|
||||
- name: nvidia-device-plugin
|
||||
image: nvcr.io/nvidia/k8s-device-plugin:v0.18.2
|
||||
args:
|
||||
- --device-id-strategy=index
|
||||
env:
|
||||
- name: LD_LIBRARY_PATH
|
||||
value: /run/nvidia/lib
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue