Skip to content

Commit eef6737

Browse files
committed
Attempt nvidia-device-plugin app fixes
1 parent 07ea2d0 commit eef6737

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

helm/nvidia-device-plugin/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ name: nvidia-device-plugin
33
description: NVIDIA Device Plugin for Kubernetes
44
type: application
55
version: 0.1.0
6-
appVersion: "v0.17.1"
6+
appVersion: "v0.18.0"

helm/nvidia-device-plugin/templates/daemonset.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ spec:
2525
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
2626
imagePullPolicy: {{ .Values.image.pullPolicy }}
2727
name: nvidia-device-plugin-ctr
28-
args: ["--fail-on-init-error=false"]
28+
command: ["nvidia-device-plugin"]
2929
securityContext:
3030
{{- toYaml .Values.securityContext | nindent 10 }}
3131
resources:
@@ -35,8 +35,13 @@ spec:
3535
env:
3636
- name: PASS_DEVICE_SPECS
3737
value: "true"
38+
{{- if typeIs "bool" .Values.failOnInitError }}
39+
- name: FAIL_ON_INIT_ERROR
40+
value: {{ .Values.failOnInitError | quote }}
41+
{{- else }}
3842
- name: FAIL_ON_INIT_ERROR
3943
value: "false"
44+
{{- end }}
4045
{{- if .Values.env }}
4146
{{- toYaml .Values.env | nindent 8 }}
4247
{{- else }}
@@ -50,5 +55,4 @@ spec:
5055
value: "compute,utility"
5156
{{- end }}
5257
volumes:
53-
{{- toYaml .Values.volumes | nindent 8 }}
54-
hostNetwork: true
58+
{{- toYaml .Values.volumes | nindent 8 }}

helm/nvidia-device-plugin/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ image:
33
tag: v0.18.0
44
pullPolicy: IfNotPresent
55

6+
failOnInitError: false
7+
68
nodeSelector:
79
kubernetes.io/arch: amd64
810
gpu: "true"

0 commit comments

Comments
 (0)