Skip to content
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.

Commit

Permalink
adding exporter dir and volume mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
salaboy committed Apr 8, 2020
1 parent 6cb9cfc commit f50a257
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
3 changes: 3 additions & 0 deletions zeebe-cluster/templates/configmap.yaml
Expand Up @@ -28,6 +28,9 @@ data:
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 }}
Expand Down
8 changes: 7 additions & 1 deletion zeebe-cluster/templates/statefulset.yaml
Expand Up @@ -85,13 +85,19 @@ spec:
subPath: startup.sh
- name: data
mountPath: /usr/local/zeebe/data
- name: exporters
mountPath: /exporters/
securityContext:
{{ toYaml .Values.podSecurityContext | indent 12 | trim }}
{{ toYaml .Values.podSecurityContext | indent 12 | trim }}
volumes:
- name: config
configMap:
name: {{ tpl .Values.global.zeebe . | quote }}
defaultMode: 0744
- name: exporters
emptyDir: {}
securityContext:
{{ toYaml .Values.podSecurityContext | indent 8 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
Expand Down
32 changes: 32 additions & 0 deletions zeebe-cluster/values.yaml
Expand Up @@ -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

0 comments on commit f50a257

Please sign in to comment.