forked from virtaitech/orion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy-plugin.yaml
40 lines (40 loc) · 997 Bytes
/
deploy-plugin.yaml
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
36
37
38
39
40
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: orion-plugin
labels:
k8s-app: virtaitech
spec:
selector:
matchLabels:
name: orion-plugin
updateStrategy:
type: RollingUpdate
template:
metadata:
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
labels:
name: orion-plugin
spec:
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
containers:
- image: virtaitech/orion-plugin:latest
name: orion-plugin
imagePullPolicy: IfNotPresent
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
volumeMounts:
- name: device-plugin
mountPath: /var/lib/kubelet/device-plugins
env:
- name : ORION_CONTROLLER
value : "172.17.0.1:9123"
volumes:
- name: device-plugin
hostPath:
path: /var/lib/kubelet/device-plugins