Skip to content

Commit

Permalink
Merging deploy\addons\gpu\nvidia-gpu-device-plugin.yaml.tmpl into dep…
Browse files Browse the repository at this point in the history
…loy\addons\nvidia-device-plugin\nvidia-device-plugin.yaml.tmpl.

Merging deploy\addons\gpu\nvidia-gpu-device-plugin.yaml.tmpl into deploy\addons\nvidia-device-plugin\nvidia-device-plugin.yaml.tmpl.
  • Loading branch information
RamBITS-AI committed Oct 4, 2024
1 parent b1ab86b commit a0f915e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions deploy/addons/nvidia-device-plugin/nvidia-device-plugin.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ spec:
name: nvidia-device-plugin-ds
spec:
tolerations:
- operator: Exists
effect: NoExecute
- operator: Exists
effect: NoSchedule
- key: nvidia.com/gpu
operator: Exists
effect: NoSchedule
Expand All @@ -43,14 +47,22 @@ spec:
env:
- name: FAIL_ON_INIT_ERROR
value: "false"
resources:
requests:
cpu: 50m
memory: 10Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
volumeMounts:
- name: device-plugin
mountPath: /var/lib/kubelet/device-plugins
- name: dev
mountPath: /dev
volumes:
- name: device-plugin
hostPath:
path: /var/lib/kubelet/device-plugins
- name: dev
mountPath: /dev

0 comments on commit a0f915e

Please sign in to comment.