Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable hostPID in the mps-control-daemon pod #1045

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
tariq1890 marked this conversation as resolved.
Show resolved Hide resolved
# 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