Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ spec:
securityContext:
{{- include "nvidia-device-plugin.securityContext" . | nindent 10 }}
volumeMounts:
- name: device-plugin
- name: kubelet-device-plugins-dir
mountPath: /var/lib/kubelet/device-plugins
{{- if typeIs "string" .Values.nvidiaDriverRoot }}
# We always mount the driver root at /driver-root in the container.
Expand All @@ -223,20 +223,22 @@ spec:
{{- toYaml . | nindent 10 }}
{{- end }}
volumes:
- name: device-plugin
- name: kubelet-device-plugins-dir
hostPath:
path: /var/lib/kubelet/device-plugins
type: Directory
- name: mps-root
hostPath:
path: {{ .Values.mps.root }}
type: DirectoryOrCreate
- name: mps-shm
hostPath:
path: {{ .Values.mps.root }}/shm
{{- if typeIs "string" .Values.nvidiaDriverRoot }}
{{- if typeIs "string" .Values.nvidiaDriverRoot }}
- name: driver-root
hostPath:
path: {{ .Values.nvidiaDriverRoot }}
type: Directory
{{- end }}
- name: cdi-root
hostPath:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,11 @@ spec:
- name: output-dir
hostPath:
path: "/etc/kubernetes/node-feature-discovery/features.d"
type: DirectoryOrCreate
- name: host-sys
hostPath:
path: "/sys"
type: Directory
- name: driver-root
hostPath:
path: {{ clean ( join "/" ( list "/" .Values.nvidiaDriverRoot ) ) | quote }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ spec:
- name: output-dir
hostPath:
path: "/etc/kubernetes/node-feature-discovery/features.d"
type: DirectoryOrCreate
- name: host-sys
hostPath:
path: "/sys"
type: Directory
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ spec:
- name: output-dir
hostPath:
path: "/etc/kubernetes/node-feature-discovery/features.d"
type: DirectoryOrCreate
- name: host-sys
hostPath:
path: "/sys"
type: Directory
2 changes: 2 additions & 0 deletions deployments/static/gpu-feature-discovery-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ spec:
- name: output-dir
hostPath:
path: "/etc/kubernetes/node-feature-discovery/features.d"
type: DirectoryOrCreate
- name: host-sys
hostPath:
path: "/sys"
type: Directory
2 changes: 2 additions & 0 deletions deployments/static/gpu-feature-discovery-job.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ spec:
- name: output-dir
hostPath:
path: "/etc/kubernetes/node-feature-discovery/features.d"
type: DirectoryOrCreate
- name: host-sys
hostPath:
path: "/sys"
type: Directory
restartPolicy: Never
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ spec:
securityContext:
privileged: true
volumeMounts:
- name: device-plugin
- name: kubelet-device-plugins-dir
mountPath: /var/lib/kubelet/device-plugins
volumes:
- name: device-plugin
- name: kubelet-device-plugins-dir
hostPath:
path: /var/lib/kubelet/device-plugins
type: Directory
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,11 @@ spec:
securityContext:
privileged: true
volumeMounts:
- name: device-plugin
- name: kubelet-device-plugins-dir
mountPath: /var/lib/kubelet/device-plugins
serviceAccountName: nvidia-device-plugin
volumes:
- name: device-plugin
- name: kubelet-device-plugins-dir
hostPath:
path: /var/lib/kubelet/device-plugins
type: DirectoryOrCreate
5 changes: 3 additions & 2 deletions deployments/static/nvidia-device-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ spec:
capabilities:
drop: ["ALL"]
volumeMounts:
- name: device-plugin
- name: kubelet-device-plugins-dir
mountPath: /var/lib/kubelet/device-plugins
volumes:
- name: device-plugin
- name: kubelet-device-plugins-dir
hostPath:
path: /var/lib/kubelet/device-plugins
type: Directory