forked from songweijia/derecho-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
derecho-deployment-with-cfg.yaml
54 lines (53 loc) · 1.51 KB
/
derecho-deployment-with-cfg.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
50
51
52
53
54
apiVersion: apps/v1
kind: Deployment
metadata:
name: derecho-worker
namespace: derecho-workspace
labels:
app.kubernetes.io/name: derecho-worker
spec:
replicas: 5
selector:
matchLabels:
app.kubernetes.io/name: derecho-worker
template:
metadata:
labels:
app.kubernetes.io/name: derecho-worker
name: derecho-worker
spec:
containers:
- name: derecho-worker
image: derecho-dev
imagePullPolicy: IfNotPresent
resources:
requests:
cpu: "1000m"
memory: "500Mi"
limits:
cpu: "2000m"
memory: "1000Mi"
command:
- "sleep"
args:
- "2592000" # 3600 * 24 * 30
volumeMounts:
- mountPath: /root/config/derecho.cfg.template
name: derecho-cfg-template
- mountPath: /root/config/libondata_example.so
name: ondata-lib
restartPolicy: Always
tolerations:
- key: "node.kubernetes.io/unschedulable"
operator: "Exists"
effect: "NoSchedule"
nodeName: 10.0.0.252 # TODO: just suit my local usage
volumes:
- name: derecho-cfg-template
hostPath:
path: /home1/root/derecho-docker/derecho-dev/k8s-config/derecho.cfg.template # TODO: just suit my local usage
type: File
- name: ondata-lib
hostPath:
path: /home1/root/derecho-docker/derecho-dev/k8s-config/libondata_example.so # TODO: just suit my local usage
type: File