zammad
by devplayer0
Zammad is a web based open source helpdesk/customer support system with many features to manage customer communication via several channels like telephone, facebook, twitter, chat and e-mails.
About this chart
Zammad Helm Chart
This directory contains a Kubernetes chart to deploy Zammad ticket system.
Prerequisites Details
- Kubernetes 1.16+
- Helm 3.x
- Cluster with at least 4GB of free RAM
Chart Details
This chart will do the following:
- Install Zammad statefulset
- Install Elasticsearch, Memcached & PostgreSQL as requirements
Installing the Chart
To install the chart use the following:
helm repo add zammad https://zammad.github.io/zammad-helm
helm upgrade --install zammad zammad/zammad --namespace zammad
Configuration
The following table lists the configurable parameters of the zammad chart and their default values.
| Parameter | Description | Default |
|---|---|---|
image.repository | Container image to use | zammad/zammad-docker-compose |
image.tag | Container image tag to deploy | 4.1.0-31 |
image.pullPolicy | Container pull policy | IfNotPresent |
image.imagePullSecrets | An array of imagePullSecrets | [] |
service.type | Service type | ClusterIP |
service.port | Service port | 8080 |
ingress.enabled | Enable Ingress | false |
ingress.annotations | Additional ingress annotations | "" |
ingress.className | Use IngressClassName | "" |
ingress.hosts | Ingress hosts | "" |
ingress.tls | Ingress TLS | [] |
envConfig.elasticsearch.schema | Elasticsearch schema | http |
envConfig.elasticsearch.host | Elasticsearch host | zammad-master |
envConfig.elasticsearch.port | Elasticsearch port | 9200 |
envConfig.elasticsearch.user | Elasticsearch user | "" |
envConfig.elasticsearch.pass | Elasticsearch pass | "" |
envConfig.elasticsearch.reindex | Elasticsearch reindex is run on start | true |
envConfig.memcached.host | Memcached host | zammad-memcached |
envConfig.memcached.port | Memcached port | 11211 |
envConfig.postgresql.host | PostgreSql host | zammad-postgresql |
envConfig.postgresql.port | PostgreSql port | 5432 |
envConfig.postgresql.pass | PostgreSql pass | "" |
envConfig.postgresql.user | PostgreSql user | zammad |
envConfig.postgresql.db | PostgreSql database | zammad_production |
envConfig.zammad.rails.trustedProxies | Configure Rails trusted proxies | "['127.0.0.1', '::1']" |
envConfig.zammad.rails.readinessProbe | Readiness probe on rails | true |
envConfig.zammad.rails.livenessProbe | Liveness probe on rails | true |
envConfig.zammad.nginx.readinessProbe | Readiness probe on nginx | true |
envConfig.zammad.nginx.livenessProbe | Liveness probe on nginx | true |
envConfig.zammad.nginx.websocketExtraHeaders | Additional nginx headers for ws location | [] |
envConfig.zammad.nginx.extraHeaders | Additional nginx headers for / location | [] |
envConfig.zammad.websocket.readinessProbe | Readiness probe on websocket | true |
envConfig.zammad.websocket.livenessProbe | Liveness probe on websocket | true |
autoWizard.enabled | enable autowizard | false |
autoWizard.config | autowizard json config | "" |
podAnnotations | Annotations for Pods | {} |
persistence.enabled | Enable persistence | true |
persistence.accessModes | Access modes | ["ReadWriteOnce"] |
persistence.size | Volume size | 15Gi |
persistence.storageClass | storage class | "" |
persistence.annotations | annotations | {} |
resources.nginx | Resource usage of Zammad's nginx container | {} |
resources.railsserver | Resource usage of Zammad's railsserver container | {} |
resources.scheduler | Resource usage of Zammad's scheduler container | {} |
resources.websocket | Resource usage of Zammad's websocket container | {} |
nodeSelector | Node Selector | {} |
tolerations | Tolerations | [] |
affinity | Affinity | {} |
elasticsearch.enabled | Use Elasticsearch chart dependency | true |
elasticsearch.enableInitialisation | Run zammad specific Elasticsearch initialisation | true |
elasticsearch.image | Elasticsearch docker image | zammad/zammad-docker-compose |
elasticsearch.imageTag | Elasticsearch docker image tag | zammad-elasticsearch-4.1.0-31 |
elasticsearch.clusterName | Elasticsearch cluster name | zammad |
elasticsearch.replicas | Elasticsearch replicas | 1 |
elasticsearch.clusterHealthCheckParams | Workaround to get ES test work in GitHubCI | "timeout=1s" |
memcached.enabled | Use Memcached dependency | true |
memcached.replicaCount | Memcached replicas | 1 |
postgresql.enabled | Use PostgreSQL dependency | true |
postgresql.postgresqlUsername | PostgreSQL user | zammad |
postgresql.postgresqlPassword | PostgreSQL password | zammad |
postgresql.postgresqlDatabase | PostgreSQL DB | zammad_production |
Specify each parameter using the --set key=value[,key=value] argument to helm install.
Important note for NFS filesystems
For persistent volumes, NFS filesystems should work correctly for Elasticsearch and PostgreSQL; however, errors will occur if Zammad itself uses an NFS-based persistent volume. Websockets will break completely. This is particularly bad news for receiving notifications from the application and using the Chat module.
Don't use an NFS-based storage class for Zammad's persistent volume.
This is relevant to EFS for AWS users, as well.
Using zammad
Once the zammad pod is ready, it can be accessed using the ingress or port forwarding. To use port forwarding:
kubectl -n zammad port-forward service/zammad 8080
Open your browser on http://localhost:8080
Upgrading
From chart version 1.x
This has changed:
- requirement chart condition variable name was changed
- the labels have changed
- the persistent volume claim was changed to persistent volume claim template
- import your filebackup here
- all requirement charts has been updated to the latest versions
- Elasticsearch
- docker image was changed to elastic/elasticsearch
- version was raised from 5.6 to 7.6
- reindexing will be done automatically
- Postgres
- bitnami/postgresql chart is used instead of stable/postgresql
- version was raised from 10.6.0 to 11.7.0
- there is no automated upgrade path
- you have to import a backup manually
- Memcached
- bitnami/memcached chart is used instead of stable/memcached
- version was raised from 1.5.6 to 1.5.22
- nothing to do here
- Elasticsearch
Before the update backup Zammad files and make a PostgreSQL backup, as you will need these backups later!
- If your helm release was named "zammad" and also installed in the namespace "zammad" like:
helm upgrade --install zammad zammad/zammad --namespace=zammad --version=1.2.1
- Do the upgrade like this:
helm delete --purge zammad
kubectl -n zammad delete pvc data-zammad-postgresql-0 data-zammad-elasticsearch-data-0 data-zammad-elasticsearch-master-0
helm upgrade --install zammad zammad/zammad --namespace=zammad --version=2.0.3
- Import your file and SQL backups inside the Zammad & Postgresql containers
From Zammad 2.6.x to 3.x
As Helm 2.x was deprecated Helm 3.x is needed now to install Zammad Helm chart. Minimum Kubernetes version is 1.16.x now.
As Porstgresql dependency Helm chart was updated to, have a look at the upgrading instructions to 9.0.0 and 10.0.0 of the Postgresql chart:
- https://artifacthub.io/packages/helm/bitnami/postgresql#to-9-0-0
- https://artifacthub.io/packages/helm/bitnami/postgresql#to-10-0-0
From Zammad 3.5.x to 4.x
Ingress config has been updated to the default of charts created with Helm 3.6.0 so you might need to adapt your ingress config.
Deploy zammad with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has zammad 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 chartzammad is pinned at v4.0.5 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