Skip to content

Commit

Permalink
Add an initcontainer to device-plugin
Browse files Browse the repository at this point in the history
Signed-off-by: chaunceyjiang <[email protected]>
  • Loading branch information
chaunceyjiang committed May 29, 2024
1 parent 4af7069 commit 7a473f4
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 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,25 @@ 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
containers:
- name: device-plugin
image: {{ .Values.devicePlugin.image }}:{{ .Values.version }}
Expand Down

0 comments on commit 7a473f4

Please sign in to comment.