This repository has been archived by the owner on Oct 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path10_statefulset_zeebe.yml
81 lines (81 loc) · 1.91 KB
/
10_statefulset_zeebe.yml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: zeebe
namespace: zeebe
spec:
selector:
matchLabels:
app: zeebe
serviceName: zeebe
replicas: 3
updateStrategy:
type: RollingUpdate
podManagementPolicy: Parallel
template:
metadata:
labels:
app: zeebe
spec:
terminationGracePeriodSeconds: 10
containers:
- name: zeebe
image: camunda/zeebe:0.20.0
env:
- name: ZEEBE_LOG_LEVEL
value: debug
- name: ZEEBE_PARTITIONS_COUNT
value: "3"
- name: ZEEBE_CLUSTER_SIZE
value: "3"
- name: ZEEBE_REPLICATION_FACTOR
value: "3"
- name: JAVA_TOOL_OPTIONS
value: |
-XX:+UnlockExperimentalVMOptions
-XX:+UseCGroupMemoryLimitForHeap
-Xms1024m
-Xmx1024m
ports:
- containerPort: 26500
name: gateway
- containerPort: 26501
name: command
- containerPort: 26502
name: internal
readinessProbe:
httpGet:
path: /ready
port: 9600
initialDelaySeconds: 20
periodSeconds: 5
resources:
requests:
cpu: 500m
memory: 1Gi
limits:
cpu: 1000m
memory: 2Gi
volumeMounts:
- name: config
mountPath: /usr/local/zeebe/conf/zeebe.cfg.toml
subPath: zeebe.cfg.toml
- name: config
mountPath: /usr/local/bin/startup.sh
subPath: startup.sh
- name: data
mountPath: /usr/local/zeebe/data
volumes:
- name: config
configMap:
name: zeebe-config
defaultMode: 0744
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: zeebe-regional
resources:
requests:
storage: 5Gi