diff --git a/nvidia-gpu-operator/overlays/nerc-ocp-prod/clusterpolicy/clusterpolicy_patch.yaml b/nvidia-gpu-operator/overlays/nerc-ocp-prod/clusterpolicy/clusterpolicy_patch.yaml new file mode 100644 index 00000000..3cfc88a6 --- /dev/null +++ b/nvidia-gpu-operator/overlays/nerc-ocp-prod/clusterpolicy/clusterpolicy_patch.yaml @@ -0,0 +1,12 @@ +apiVersion: nvidia.com/v1 +kind: ClusterPolicy +metadata: + name: gpu-cluster-policy +spec: + toolkit: + enabled: true + env: + - name: ACCEPT_NVIDIA_VISIBLE_DEVICES_ENVVAR_WHEN_UNPRIVILEGED + value: 'false' + - name: ACCEPT_NVIDIA_VISIBLE_DEVICES_AS_VOLUME_MOUNTS + value: "true" diff --git a/nvidia-gpu-operator/overlays/nerc-ocp-prod/kustomization.yaml b/nvidia-gpu-operator/overlays/nerc-ocp-prod/kustomization.yaml index b74f253a..82f51e70 100644 --- a/nvidia-gpu-operator/overlays/nerc-ocp-prod/kustomization.yaml +++ b/nvidia-gpu-operator/overlays/nerc-ocp-prod/kustomization.yaml @@ -3,3 +3,5 @@ kind: Kustomization namespace: nvidia-gpu-operator resources: - ../../base +patches: + - path: clusterpolicy/clusterpolicy_patch.yaml