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..22772ef9 --- /dev/null +++ b/nvidia-gpu-operator/overlays/nerc-ocp-prod/clusterpolicy/clusterpolicy_patch.yaml @@ -0,0 +1,9 @@ +apiVersion: nvidia.com/v1 +kind: ClusterPolicy +metadata: + name: gpu-cluster-policy +spec: + toolkit: + env: + - name: ACCEPT_NVIDIA_VISIBLE_DEVICES_ENVVAR_WHEN_UNPRIVILEGED + value: 'false' 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