Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an initcontainer to device-plugin #329

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
50 changes: 50 additions & 0 deletions charts/hami/templates/device-plugin/daemonsetnvidia.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,40 @@ spec:
priorityClassName: system-node-critical
hostPID: true
hostNetwork: true
initContainers:
- args:
- nvidia-validator
command:
- sh
- -c
env:
- name: WITH_WAIT
value: "true"
- name: COMPONENT
value: driver
image: nvcr.m.daocloud.io/nvidia/cloud-native/gpu-operator-validator:v23.9.0
imagePullPolicy: IfNotPresent
name: driver-validation
resources: {}
securityContext:
privileged: true
seLinuxOptions:
level: s0
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /run/nvidia/driver
mountPropagation: HostToContainer
name: driver-install-path
- mountPath: /run/nvidia/validations
mountPropagation: Bidirectional
name: run-nvidia-validations
- mountPath: /host
mountPropagation: HostToContainer
name: host-root
readOnly: true
- mountPath: /host-dev-char
name: host-dev-char
containers:
- name: device-plugin
image: {{ .Values.devicePlugin.image }}:{{ .Values.version }}
Expand Down Expand Up @@ -128,6 +162,22 @@ spec:
- name: usrbin
hostPath:
path: /usr/bin
- hostPath:
path: /run/nvidia/driver
type: ""
name: driver-install-path
- hostPath:
path: /run/nvidia/validations
type: DirectoryOrCreate
name: run-nvidia-validations
- hostPath:
path: /
type: ""
name: host-root
- hostPath:
path: /dev/char
type: ""
name: host-dev-char
- name: sysinfo
hostPath:
path: /sys
Expand Down
Loading