Skip to content

Commit

Permalink
Adding correct capabilities to container
Browse files Browse the repository at this point in the history
Signed-off-by: Kristi <74095043+kndoni@users.noreply.github.com>
  • Loading branch information
kndoni committed Jun 11, 2024
1 parent 458098e commit 1ab4cdb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ spec:
{{- toYaml . | nindent 10 }}
{{- end }}
securityContext:
{{- include "gpu-feature-discovery.securityContext" . | nindent 10 }}
{{- include "nvidia-device-plugin.securityContext" . | nindent 10 }}
{{- end }}
containers:
{{- if $options.hasConfigMap }}
Expand Down Expand Up @@ -139,7 +139,7 @@ spec:
{{- toYaml . | nindent 10 }}
{{- end }}
securityContext:
{{- include "gpu-feature-discovery.securityContext" . | nindent 10 }}
{{- include "nvidia-device-plugin.securityContext" . | nindent 10 }}
{{- end }}
- image: {{ include "nvidia-device-plugin.fullimage" . }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
Expand Down Expand Up @@ -185,7 +185,10 @@ spec:
- name: GFD_MODE
value: "{{ .Values.gfdMode }}"
securityContext:
{{- include "gpu-feature-discovery.securityContext" . | nindent 10 }}
{{- include "nvidia-device-plugin.securityContext" . | nindent 10 }}
capabilities:
add:
- SYS_ADMIN
volumeMounts:
- name: output-dir
mountPath: "/etc/kubernetes/node-feature-discovery/features.d"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ spec:
value: ""
- name: PROCESS_TO_SIGNAL
value: ""
securityContext:
{{- include "nvidia-device-plugin.securityContext" . | nindent 10 }}
volumeMounts:
- name: available-configs
mountPath: /available-configs
Expand Down Expand Up @@ -139,6 +141,8 @@ spec:
value: "1"
- name: PROCESS_TO_SIGNAL
value: "/usr/bin/mps-control-daemon"
securityContext:
{{- include "nvidia-device-plugin.securityContext" . | nindent 10 }}
volumeMounts:
- name: available-configs
mountPath: /available-configs
Expand Down

0 comments on commit 1ab4cdb

Please sign in to comment.