This repository has been archived by the owner on Aug 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
/
configmap.yaml
74 lines (64 loc) · 2.23 KB
/
configmap.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
kind: ConfigMap
metadata:
name: {{ tpl .Values.global.zeebe . | quote }}
labels:
app.kubernetes.io/name: {{ include "zeebe-cluster.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app: {{ tpl .Values.global.zeebe . | quote }}
apiVersion: v1
data:
startup.sh: |
#!/usr/bin/env bash
set -eux -o pipefail
export ZEEBE_ADVERTISED_HOST=${ZEEBE_ADVERTISED_HOST:-$(hostname -f)}
export ZEEBE_NODE_ID=${ZEEBE_NODE_ID:-${K8S_POD_NAME##*-}}
# As the number of replicas or the DNS is not obtainable from the downward API yet,
# defined them here based on conventions
export ZEEBE_CLUSTER_SIZE=${ZEEBE_CLUSTER_SIZE:-1}
contactPointPrefix=${K8S_POD_NAME%-*}
contactPoints=${ZEEBE_CONTACT_POINTS:-""}
if [[ -z "${contactPoints}" ]]; then
for ((i=0; i<${ZEEBE_CLUSTER_SIZE}; i++))
do
contactPoints="${contactPoints},${contactPointPrefix}-$i.$(hostname -d):26502"
done
export ZEEBE_CONTACT_POINTS="${contactPoints}"
fi
ls -al /exporters/
cp -a /exporters/*.jar /usr/local/zeebe/lib/
exec /usr/local/zeebe/bin/broker
zeebe.cfg.toml: |
{{ .Values.zeebeCfg }}
# For more information about this configuration visit: https://docs.zeebe.io/operations/the-zeebecfgtoml-file.html
[threads]
cpuThreadCount = {{ .Values.cpuThreadCount | quote }}
ioThreadCount = {{ .Values.ioThreadCount | quote }}
[gateway]
enable = false
[gateway.monitoring]
enabled = {{ .Values.gatewayMetrics | default false }}
[[exporters]]
id = "elasticsearch"
className = "io.zeebe.exporter.ElasticsearchExporter"
[exporters.args]
url = "http://{{ .Values.global.elasticsearch.host }}:{{ .Values.global.elasticsearch.port }}"
[exporters.args.bulk]
delay = 5
size = 1_000
#[exporters.args.authentication]
#username = elastic
#password = changeme
[exporters.args.index]
prefix = "zeebe-record"
createTemplate = true
command = false
event = true
rejection = false
deployment = true
incident = true
job = true
message = false
messageSubscription = false
raft = false
workflowInstance = true
workflowInstanceSubscription = false