Skip to content

Commit

Permalink
enable hostPID in the mps-control-daemon pod
Browse files Browse the repository at this point in the history
Signed-off-by: Tariq Ibrahim <[email protected]>
  • Loading branch information
tariq1890 committed Nov 12, 2024
1 parent acc4dd8 commit 6edfdc9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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" . }}
Expand Down
5 changes: 5 additions & 0 deletions deployments/helm/nvidia-device-plugin/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6edfdc9

Please sign in to comment.