Skip to content

Commit 40d61f2

Browse files
committed
feat: supports hostnetwork mode
Signed-off-by: Jungsub Shin <[email protected]>
1 parent c494b79 commit 40d61f2

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

deployments/helm/nvidia-device-plugin/templates/daemonset-device-plugin.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ spec:
5050
imagePullSecrets:
5151
{{- toYaml . | nindent 8 }}
5252
{{- end }}
53+
{{- if .Values.devicePlugin.enableHostNetwork }}
54+
hostNetwork: true
55+
dnsPolicy: ClusterFirstWithHostNet
56+
{{- end }}
5357
securityContext:
5458
{{- toYaml .Values.podSecurityContext | nindent 8 }}
5559
{{- if $useServiceAccount }}

deployments/helm/nvidia-device-plugin/templates/daemonset-gfd.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ spec:
5050
imagePullSecrets:
5151
{{- toYaml . | nindent 8 }}
5252
{{- end }}
53+
{{- if .Values.gfd.enableHostNetwork }}
54+
hostNetwork: true
55+
dnsPolicy: ClusterFirstWithHostNet
56+
{{- end }}
5357
securityContext:
5458
{{- toYaml .Values.podSecurityContext | nindent 8 }}
5559
{{- if $useServiceAccount }}

deployments/helm/nvidia-device-plugin/templates/daemonset-mps-control-daemon.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ spec:
4848
imagePullSecrets:
4949
{{- toYaml . | nindent 8 }}
5050
{{- end }}
51+
{{- if .Values.mps.enableHostNetwork }}
52+
hostNetwork: true
53+
dnsPolicy: ClusterFirstWithHostNet
54+
{{- end }}
5155
securityContext:
5256
{{- toYaml .Values.podSecurityContext | nindent 8 }}
5357
{{- if $options.hasConfigMap }}

0 commit comments

Comments
 (0)