50 lines
1.5 KiB
YAML
50 lines
1.5 KiB
YAML
# infrastructure/modules/profiles/components/device-plugin-tethys/daemonset.yaml
|
|
apiVersion: apps/v1
|
|
kind: DaemonSet
|
|
metadata:
|
|
name: nvidia-device-plugin-tethys
|
|
namespace: kube-system
|
|
labels:
|
|
app.kubernetes.io/name: nvidia-device-plugin
|
|
app.kubernetes.io/instance: titan24
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: nvidia-device-plugin
|
|
app.kubernetes.io/instance: titan24
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: nvidia-device-plugin
|
|
app.kubernetes.io/instance: titan24
|
|
spec:
|
|
nodeSelector:
|
|
kubernetes.io/hostname: titan-24
|
|
kubernetes.io/arch: amd64
|
|
tolerations:
|
|
- operator: Exists
|
|
priorityClassName: system-node-critical
|
|
runtimeClassName: nvidia
|
|
containers:
|
|
- name: nvidia-device-plugin-ctr
|
|
image: nvcr.io/nvidia/k8s-device-plugin:v0.16.2
|
|
imagePullPolicy: IfNotPresent
|
|
args:
|
|
- "--fail-on-init-error=false"
|
|
- "--device-list-strategy=envvar"
|
|
- "--mig-strategy=none"
|
|
securityContext:
|
|
privileged: true
|
|
env:
|
|
- name: NVIDIA_VISIBLE_DEVICES
|
|
value: "all"
|
|
- name: NVIDIA_DRIVER_CAPABILITIES
|
|
value: "compute,video,utility"
|
|
volumeMounts:
|
|
- name: device-plugin
|
|
mountPath: /var/lib/kubelet/device-plugins
|
|
volumes:
|
|
- name: device-plugin
|
|
hostPath:
|
|
path: /var/lib/kubelet/device-plugins
|