forked from virtaitech/orion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy-server-cuda10.0.yaml
49 lines (49 loc) · 1.11 KB
/
deploy-server-cuda10.0.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
41
42
43
44
45
46
47
48
49
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: orion-server
labels:
k8s-app: virtaitech
spec:
selector:
matchLabels:
name: orion-server
updateStrategy:
type: RollingUpdate
template:
metadata:
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
labels:
name: orion-server
spec:
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
hostNetwork: true
hostIPC: true
hostPID: true
containers:
- image: virtaitech/orion-server:cu10.0
name: orion-server
imagePullPolicy: IfNotPresent
securityContext:
privileged: true
volumeMounts:
- name: shm
mountPath: "/dev/shm"
env:
- name : ORION_CONTROLLER
value : "127.0.0.1:9123"
- name : BIND_ADDR
value : "172.17.0.1"
- name : PORT
value : "9960"
- name : VGPU
value : "2"
- name : LOG_LEVEL
value : "INFO"
volumes:
- name: shm
hostPath:
path: /dev/shm