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 18, 2024
1 parent 23334f7 commit 3438cf9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,13 @@ spec:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- if $options.hasConfigMap }}
serviceAccountName: {{ include "nvidia-device-plugin.fullname" . }}-service-account
{{- if not .Values.mps.enableHostPID }}
shareProcessNamespace: true
{{- end }}
{{- end }}
{{- if .Values.mps.enableHostPID }}
hostPID: true
{{- end }}
initContainers:
- image: {{ include "nvidia-device-plugin.fullimage" . }}
name: mps-control-daemon-mounts
Expand Down
6 changes: 6 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,12 @@ 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.
# NOTE: HostPID and ShareProcessNamespace cannot both be set to true
enableHostPID: true


cdi:
Expand Down

0 comments on commit 3438cf9

Please sign in to comment.