-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathhostdev-plugin-ds.yaml
More file actions
35 lines (35 loc) · 887 Bytes
/
hostdev-plugin-ds.yaml
File metadata and controls
35 lines (35 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: hostdev-device-plugin
namespace: kube-system
spec:
template:
metadata:
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
labels:
name: hostdev-device-plugin-ds
spec:
tolerations:
- key: CriticalAddonsOnly
operator: Exists
hostNetwork: true
containers:
- name: hostdev
image: ccr.ccs.tencentyun.com/paas/hostdev:latest
args: ["--devs", "/dev/mem:r"]
securityContext:
privileged: true
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
hostPath:
path: /dev