Skip to content

Commit 459a737

Browse files
committed
Make visible devices configurable
As adjusting this env var is necessary for the current suggested workaround for issues [1] and [2]. This saves overhead for operators who previously had to adjust the env var via a kustomization or helm post-renderer. [1]: #1683 [2]: NVIDIA/nvidia-container-toolkit#1740 Signed-off-by: Steve Starke <steve.starke@cloudandheat.com>
1 parent 2481647 commit 459a737

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

deployments/helm/nvidia-device-plugin/templates/daemonset-device-plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ spec:
200200
value: {{ .Values.deviceDiscoveryStrategy }}
201201
{{- end }}
202202
- name: NVIDIA_VISIBLE_DEVICES
203-
value: all
203+
value: {{ .Values.visibleDevices }}
204204
- name: NVIDIA_DRIVER_CAPABILITIES
205205
value: compute,utility
206206
securityContext:

deployments/helm/nvidia-device-plugin/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ gdrcopyEnabled: null
3737
gdsEnabled: null
3838
mofedEnabled: null
3939
deviceDiscoveryStrategy: null
40+
visibleDevices: all
4041

4142
nameOverride: ""
4243
fullnameOverride: ""

0 commit comments

Comments
 (0)