diff --git a/k8s/code/nvidia-device-plugin.yaml b/k8s/code/nvidia-device-plugin.yaml new file mode 100644 index 0000000..ec9ea3f --- /dev/null +++ b/k8s/code/nvidia-device-plugin.yaml @@ -0,0 +1,34 @@ +# nvidia GPU device-plugin DaemonSet — pfv-k8s-wnode-tsys3 (Quadro M2000M 4G) +# GPU verified end-to-end 2026-09-04 (#763/#769): pod with nvidia.com/gpu:1 +# schedules + nvidia-smi works in-container (driver 550.163.01, CUDA 12.4). +# Prereq on the node: nvidia driver + nvidia-container-runtime (k3s). +apiVersion: apps/v1 +kind: DaemonSet +metadata: + name: nvidia-device-plugin-daemonset + namespace: kube-system +spec: + selector: + matchLabels: + name: nvidia-device-plugin-ds + template: + metadata: + labels: + name: nvidia-device-plugin-ds + spec: + nodeSelector: + kubernetes.io/hostname: pfv-k8s-wnode-tsys3 + tolerations: + - key: CriticalAddonsOnly + operator: Exists + containers: + - name: nvidia-device-plugin-ctr + image: nvcr.io/nvidia/k8s-device-plugin:v0.17.0 + args: ["--fail-on-init-error=false"] + volumeMounts: + - name: device-plugin + mountPath: /var/lib/kubelet/device-plugins + volumes: + - name: device-plugin + hostPath: + path: /var/lib/kubelet/device-plugins