From e5475d7474e52ca104b3a7fcc4b59f8f801d40f7 Mon Sep 17 00:00:00 2001 From: salaboy Date: Mon, 9 Mar 2020 17:48:13 +0000 Subject: [PATCH] adding exporter dir and volume mounts --- zeebe-cluster/templates/configmap.yaml | 41 ++---------------------- zeebe-cluster/templates/statefulset.yaml | 4 +++ zeebe-cluster/values.yaml | 32 ++++++++++++++++++ 3 files changed, 39 insertions(+), 38 deletions(-) diff --git a/zeebe-cluster/templates/configmap.yaml b/zeebe-cluster/templates/configmap.yaml index c29bc10..15116b1 100644 --- a/zeebe-cluster/templates/configmap.yaml +++ b/zeebe-cluster/templates/configmap.yaml @@ -22,43 +22,8 @@ data: ZEEBE_CONTACT_POINTS="${ZEEBE_CONTACT_POINTS},${HOSTNAME::-1}$i.$(hostname -d):26502" done export ZEEBE_CONTACT_POINTS="${ZEEBE_CONTACT_POINTS}" + 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.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 + zeebe.cfg.toml: {{ toYaml .Values.zeebeCfg | indent 4 }} diff --git a/zeebe-cluster/templates/statefulset.yaml b/zeebe-cluster/templates/statefulset.yaml index 4ca78ba..4804e2a 100644 --- a/zeebe-cluster/templates/statefulset.yaml +++ b/zeebe-cluster/templates/statefulset.yaml @@ -80,11 +80,15 @@ spec: subPath: startup.sh - name: data mountPath: /usr/local/zeebe/data + - name: exporters + mountPath: /exporters/ volumes: - name: config configMap: name: {{ tpl .Values.global.zeebe . | quote }} defaultMode: 0744 + - name: exporters + emptyDir: {} securityContext: {{ toYaml .Values.podSecurityContext | indent 8 }} {{- with .Values.nodeSelector }} diff --git a/zeebe-cluster/values.yaml b/zeebe-cluster/values.yaml index 1f413ee..6b927b0 100644 --- a/zeebe-cluster/values.yaml +++ b/zeebe-cluster/values.yaml @@ -77,3 +77,35 @@ nodeSelector: {} tolerations: [] affinity: {} + +zeebeCfg: |- + [[exporters]] + id = "elasticsearch" + className = "io.zeebe.exporter.ElasticsearchExporter" + [exporters.args] + url = "http://elasticsearch-master:9200" + + [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 \ No newline at end of file