...
1apiVersion: apps/v1
2kind: DaemonSet
3metadata:
4 name: sample-device-plugin-beta
5 namespace: kube-system
6 labels:
7 k8s-app: sample-device-plugin
8spec:
9 selector:
10 matchLabels:
11 k8s-app: sample-device-plugin
12 template:
13 metadata:
14 labels:
15 k8s-app: sample-device-plugin
16 annotations:
17 spec:
18 priorityClassName: system-node-critical
19 tolerations:
20 - operator: "Exists"
21 effect: "NoExecute"
22 - operator: "Exists"
23 effect: "NoSchedule"
24 volumes:
25 - name: device-plugin
26 hostPath:
27 path: /var/lib/kubelet/device-plugins
28 - name: plugins-registry-probe-mode
29 hostPath:
30 path: /var/lib/kubelet/plugins_registry
31 - name: dev
32 hostPath:
33 path: /dev
34 - name: cdi-dir
35 hostPath:
36 path: /var/run/cdi
37 containers:
38 - image: registry.k8s.io/e2e-test-images/sample-device-plugin:1.7
39 name: sample-device-plugin
40 env:
41 - name: PLUGIN_SOCK_DIR
42 value: "/var/lib/kubelet/device-plugins"
43 securityContext:
44 privileged: true
45 volumeMounts:
46 - name: device-plugin
47 mountPath: /var/lib/kubelet/device-plugins
48 - name: plugins-registry-probe-mode
49 mountPath: /var/lib/kubelet/plugins_registry
50 - name: dev
51 mountPath: /dev
52 - name: cdi-dir
53 mountPath: /var/run/cdi
54 updateStrategy:
55 type: RollingUpdate
View as plain text