From 5194de13b9add1b89ea513de00d071336da2d7c4 Mon Sep 17 00:00:00 2001 From: Erich Blume Date: Thu, 19 Feb 2026 12:34:20 -0800 Subject: [PATCH] Mount host NVIDIA libraries into device plugin for NVML access The device plugin needs libnvidia-ml.so to discover GPUs even when using CDI annotations. Mount /run/opengl-driver/lib (NixOS NVIDIA lib path) into the pod and set LD_LIBRARY_PATH. Co-Authored-By: Claude Opus 4.6 --- argocd/manifests/nvidia-device-plugin/daemonset.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/argocd/manifests/nvidia-device-plugin/daemonset.yaml b/argocd/manifests/nvidia-device-plugin/daemonset.yaml index e3c9081..b30d0cb 100644 --- a/argocd/manifests/nvidia-device-plugin/daemonset.yaml +++ b/argocd/manifests/nvidia-device-plugin/daemonset.yaml @@ -28,6 +28,8 @@ spec: value: cdi-annotations - name: CDI_ROOT value: /var/run/cdi + - name: LD_LIBRARY_PATH + value: /run/nvidia/lib securityContext: allowPrivilegeEscalation: false capabilities: @@ -38,6 +40,9 @@ spec: - name: cdi-specs mountPath: /var/run/cdi readOnly: true + - name: nvidia-libs + mountPath: /run/nvidia/lib + readOnly: true volumes: - name: device-plugins hostPath: @@ -45,3 +50,6 @@ spec: - name: cdi-specs hostPath: path: /var/run/cdi + - name: nvidia-libs + hostPath: + path: /run/opengl-driver/lib