Skip to content

Commit 96d521c

Browse files
committed
working daemonset
1 parent 8123d10 commit 96d521c

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

deploy/kubernetes/daemonset.yaml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,29 @@ spec:
1313
labels:
1414
k8s-app: nvidia-gpu-monitoring-daemonset
1515
spec:
16-
volumes:
17-
- name: kubelet-podresources
18-
hostPath:
19-
path: /var/lib/kubelet/
20-
- name: dev
21-
hostPath:
22-
path: /dev
2316
containers:
2417
- image: "gcr.io/dashpole-kubernetes-test/gpu-monitor:v2"
2518
name: gpu-monitor
26-
args: ["--socket=/podresources/kubelet.sock"]
19+
args: ["--socket=/podresources/kubelet.sock", --v=10]
2720
volumeMounts:
2821
- name: kubelet-podresources
2922
mountPath: /podresources
3023
- name: dev
3124
mountPath: /dev
25+
- name: libnvidia
26+
mountPath: /home/kubernetes/bin/nvidia/lib64/
27+
securityContext:
28+
privileged: true
29+
env:
30+
- name: LD_LIBRARY_PATH
31+
value: "/home/kubernetes/bin/nvidia/lib64/"
32+
volumes:
33+
- name: kubelet-podresources
34+
hostPath:
35+
path: /var/lib/kubelet/
36+
- name: dev
37+
hostPath:
38+
path: /dev
39+
- name: libnvidia
40+
hostPath:
41+
path: /home/kubernetes/bin/nvidia/lib64/

0 commit comments

Comments
 (0)