From 6edfdc987a1606ed2c9aca3d92ef3b546ebc992d Mon Sep 17 00:00:00 2001 From: Tariq Ibrahim Date: Fri, 8 Nov 2024 17:19:35 -0800 Subject: [PATCH] enable hostPID in the mps-control-daemon pod Signed-off-by: Tariq Ibrahim --- .../templates/daemonset-mps-control-daemon.yml | 1 + deployments/helm/nvidia-device-plugin/values.yaml | 5 +++++ 2 files changed, 6 insertions(+) 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 4d1fefdfb..e1bf7c73e 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 @@ -53,6 +53,7 @@ spec: {{- if $options.hasConfigMap }} serviceAccountName: {{ include "nvidia-device-plugin.fullname" . }}-service-account shareProcessNamespace: true + hostPID: {{ .Values.mps.enableHostPID }} {{- end }} initContainers: - image: {{ include "nvidia-device-plugin.fullimage" . }} diff --git a/deployments/helm/nvidia-device-plugin/values.yaml b/deployments/helm/nvidia-device-plugin/values.yaml index b0c624295..41ff1631f 100644 --- a/deployments/helm/nvidia-device-plugin/values.yaml +++ b/deployments/helm/nvidia-device-plugin/values.yaml @@ -150,6 +150,11 @@ mps: # directories. # Pipe directories will be created at {{ mps.root }}/{{ .ResourceName }} root: "/run/nvidia/mps" + # enableHostPID when set to true provides the pod access to the host's PID namespace. + # hostPID is needed for the MPS server to find its own PID via /proc/self + # If the gpu driver is running in the host PID namespace, it is highly + # recommended that you enable this option + enableHostPID: true cdi: