From 40d61f23640a5266872bb031ffd14c7a47303d5b Mon Sep 17 00:00:00 2001 From: Jungsub Shin Date: Thu, 14 Aug 2025 02:21:13 +0900 Subject: [PATCH] feat: supports hostnetwork mode Signed-off-by: Jungsub Shin --- .../templates/daemonset-device-plugin.yml | 4 ++++ .../helm/nvidia-device-plugin/templates/daemonset-gfd.yml | 4 ++++ .../templates/daemonset-mps-control-daemon.yml | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/deployments/helm/nvidia-device-plugin/templates/daemonset-device-plugin.yml b/deployments/helm/nvidia-device-plugin/templates/daemonset-device-plugin.yml index 5d9c3b579..29bf01f42 100644 --- a/deployments/helm/nvidia-device-plugin/templates/daemonset-device-plugin.yml +++ b/deployments/helm/nvidia-device-plugin/templates/daemonset-device-plugin.yml @@ -50,6 +50,10 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- if .Values.devicePlugin.enableHostNetwork }} + hostNetwork: true + dnsPolicy: ClusterFirstWithHostNet + {{- end }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} {{- if $useServiceAccount }} diff --git a/deployments/helm/nvidia-device-plugin/templates/daemonset-gfd.yml b/deployments/helm/nvidia-device-plugin/templates/daemonset-gfd.yml index 09f9dfe39..8faacb71a 100644 --- a/deployments/helm/nvidia-device-plugin/templates/daemonset-gfd.yml +++ b/deployments/helm/nvidia-device-plugin/templates/daemonset-gfd.yml @@ -50,6 +50,10 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- if .Values.gfd.enableHostNetwork }} + hostNetwork: true + dnsPolicy: ClusterFirstWithHostNet + {{- end }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} {{- if $useServiceAccount }} diff --git a/deployments/helm/nvidia-device-plugin/templates/daemonset-mps-control-daemon.yml b/deployments/helm/nvidia-device-plugin/templates/daemonset-mps-control-daemon.yml index da37aba6d..1b7dd3a89 100644 --- a/deployments/helm/nvidia-device-plugin/templates/daemonset-mps-control-daemon.yml +++ b/deployments/helm/nvidia-device-plugin/templates/daemonset-mps-control-daemon.yml @@ -48,6 +48,10 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- if .Values.mps.enableHostNetwork }} + hostNetwork: true + dnsPolicy: ClusterFirstWithHostNet + {{- end }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} {{- if $options.hasConfigMap }}