camunda-bpm-platform
Community Helm chart for Camunda BPM Platform 7 (Engine, Tasklist, Cockpit, etc).
About this chart
Camunda BPM Platform 7 Helm Chart
A Helm chart for Camunda BPM Platform 7, the open-source BPM platform.
Note
This chart is a community effort for Camunda Platform 7, if you are looking for the brand new Camunda platform then go to the official Camunda Platform 8 Helm repo.
Install
$ helm repo add camunda https://helm.cch.camunda.cloud
$ helm repo update
$ helm install demo camunda/camunda-bpm-platform
Links
- Camunda homepage: https://camunda.com
- Camunda BPM Platform repo: https://github.com/camunda/camunda-bpm-platform
- Camunda BPM Platform Docker image: https://github.com/camunda/docker-camunda-bpm-platform
Example
Using this custom values file the chart will:
- Use a custom name for deployment.
- Deploy 3 instances of Camunda Platform v7 Run
with
REST APIonly enabled (that means noWebappsnorSwagger UIwill be enabled). - Use PostgreSQL as an external database (it assumes that the database
process-engineis already created and the secretcamunda-bpm-platform-postgresql-credentialshas the mandatory dataDB_USERNAMEandDB_PASSWORD). - Set custom config for
readinessProbeand checking an endpoint that queries the database so no traffic will be sent to the REST API if the engine pod is not able to access the database. - Expose Prometheus metrics of the Camunda Platform over the metrics service with port
9404.
# Custom values.yaml
general:
fullnameOverride: camunda-bpm-platform-v7-rest
replicaCount: 3
image:
name: camunda/camunda-bpm-platform
tag: run-latest
command: ['./camunda.sh']
args: ['--rest']
extraEnvs:
- name: DB_VALIDATE_ON_BORROW
value: "false"
database:
driver: org.postgresql.Driver
url: jdbc:postgresql://camunda-bpm-platform-v7-postgresql:5432/process-engine
credentialsSecretName: camunda-bpm-platform-v7-postgresql-credentials
credentialsSecretEnabled: true
service:
type: ClusterIP
port: 8080
portName: http
readinessProbe:
enabled: true
config:
httpGet:
path: /engine-rest/incident/count
port: http
initialDelaySeconds: 120
periodSeconds: 60
metrics:
enabled: true
service:
type: ClusterIP
port: 9404
portName: metrics
annotations:
prometheus.io/scrape: "true"
prometheus.io/path: "/"
prometheus.io/port: "9404"
Configuration
General
Replicas
Set the number of replicas:
general:
replicaCount: 1
Please note, Camunda BPM Platform 7 cluster mode is not supported with the default database H2, and an external database should be used if you want to increase the number of the replicas.
Extra environment variables
The deployment could be customized by providing extra environment variables according to the project Docker image. The extra environment variables will be templated using the 'tpl' function. This is useful to pass a template string as a value to a chart or render external configuration files.
extraEnvs:
- name: DB_VALIDATE_ON_BORROW
value: "false"
- name: SERVICE_PORT
value: {{ .Values.service.port }}
Debugging
Enable debugging in the Camunda BPM Platform 7 container by setting:
general:
debug: true
Init Containers
For a reason or another, you could need to do some pre-startup actions before the start of the Camunda BPM Platform. e.g. you could wait for a specific service to be ready or to post to an external service.
If that's needed, it could be done as the following:
initContainers:
- name: pre-startup-checks
image: busybox:1.28
command: ['sh', '-c', 'echo "The initContainers work as expected"']
Extra Containers
For a reason or another, you could need to add sidecars. e.g. you could have a fluentd that check your logs or a vault that inject your db secrets.
If that's needed, it could be done as the following:
extraContainers:
- name: fluentd
image: "fluentd"
volumeMounts:
- mountPath: /my_mounts/cribl-config
name: config-storage
Image
Camunda BPM Platform open-source Docker image comes in 3 distributions tomcat, wildfly, and run.
Each distro has different tags, check the list of
supported tags/releases
by Camunda BPM Platform docker project for more details.
The image used in the chart is latest (which's actually tomcat-latest).
repository and tag use tpl function, it allows you to do templating:
image:
tag: "{{ .Chart.Version }}"
Database
One of the supported databases could be used as a database for Camunda BPM Platform 7.
The H2 database is used by default which works fine if you just want to test Camunda BPM Platform 7. But since the database is embedded, only 1 deployment replica could be used.
For real-world workloads, an external database like PostgreSQL should be used. The following is an example of using PostgreSQL as an external database.
First, assuming that you have a PostgreSQL system up and running with service and port
camunda-bpm-platform-postgresql:5432, also the database process-engine is created and you have its credentials,
create a secret has database credentials which will be used later by Camunda BPM Platform 7 deployment:
$ kubectl create secret generic \
camunda-bpm-platform-postgresql-credentials \
--from-literal=DB_USERNAME=foo \
--from-literal=DB_PASSWORD=bar
Now, set the values to use the external database:
database:
driver: org.postgresql.Driver
url: jdbc:postgresql://camunda-bpm-platform-v7-postgresql:5432/process-engine
credentialsSecretName: camunda-bpm-platform-v7-postgresql-credentials
credentialsSecretEnabled: true
# The username and password keys could be customized to whatever used in the credentials secret.
credentialsSecretKeys:
username: DB_USERNAME
password: DB_PASSWORD
Please note, this Helm chart doesn't manage any external database, it just uses what's configured.
Metrics
Enable Prometheus metrics for Camunda BPM Platform 7 by setting the following in the values file:
metrics:
enabled: true
service:
type: ClusterIP
port: 9404
portName: metrics
annotations:
prometheus.io/scrape: "true"
prometheus.io/path: "/"
prometheus.io/port: "9404"
If there is a Prometheus configured in the cluster, it will scrap the metrics service automatically. Check the notes after the deployment for more details about the metrics endpoint.
Deploy camunda-bpm-platform with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has camunda-bpm-platform on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartcamunda-bpm-platform is pinned at v7.6.11 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply