zammad

by devplayer0

Helm chartv4.0.5App 4.1.0Verified publisher

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.

ParameterDescriptionDefault
image.repositoryContainer image to usezammad/zammad-docker-compose
image.tagContainer image tag to deploy4.1.0-31
image.pullPolicyContainer pull policyIfNotPresent
image.imagePullSecretsAn array of imagePullSecrets[]
service.typeService typeClusterIP
service.portService port8080
ingress.enabledEnable Ingressfalse
ingress.annotationsAdditional ingress annotations""
ingress.classNameUse IngressClassName""
ingress.hostsIngress hosts""
ingress.tlsIngress TLS[]
envConfig.elasticsearch.schemaElasticsearch schemahttp
envConfig.elasticsearch.hostElasticsearch hostzammad-master
envConfig.elasticsearch.portElasticsearch port9200
envConfig.elasticsearch.userElasticsearch user""
envConfig.elasticsearch.passElasticsearch pass""
envConfig.elasticsearch.reindexElasticsearch reindex is run on starttrue
envConfig.memcached.hostMemcached hostzammad-memcached
envConfig.memcached.portMemcached port11211
envConfig.postgresql.hostPostgreSql hostzammad-postgresql
envConfig.postgresql.portPostgreSql port5432
envConfig.postgresql.passPostgreSql pass""
envConfig.postgresql.userPostgreSql userzammad
envConfig.postgresql.dbPostgreSql databasezammad_production
envConfig.zammad.rails.trustedProxiesConfigure Rails trusted proxies"['127.0.0.1', '::1']"
envConfig.zammad.rails.readinessProbeReadiness probe on railstrue
envConfig.zammad.rails.livenessProbeLiveness probe on railstrue
envConfig.zammad.nginx.readinessProbeReadiness probe on nginxtrue
envConfig.zammad.nginx.livenessProbeLiveness probe on nginxtrue
envConfig.zammad.nginx.websocketExtraHeadersAdditional nginx headers for ws location[]
envConfig.zammad.nginx.extraHeadersAdditional nginx headers for / location[]
envConfig.zammad.websocket.readinessProbeReadiness probe on websockettrue
envConfig.zammad.websocket.livenessProbeLiveness probe on websockettrue
autoWizard.enabledenable autowizardfalse
autoWizard.configautowizard json config""
podAnnotationsAnnotations for Pods{}
persistence.enabledEnable persistencetrue
persistence.accessModesAccess modes["ReadWriteOnce"]
persistence.sizeVolume size15Gi
persistence.storageClassstorage class""
persistence.annotationsannotations{}
resources.nginxResource usage of Zammad's nginx container{}
resources.railsserverResource usage of Zammad's railsserver container{}
resources.schedulerResource usage of Zammad's scheduler container{}
resources.websocketResource usage of Zammad's websocket container{}
nodeSelectorNode Selector{}
tolerationsTolerations[]
affinityAffinity{}
elasticsearch.enabledUse Elasticsearch chart dependencytrue
elasticsearch.enableInitialisationRun zammad specific Elasticsearch initialisationtrue
elasticsearch.imageElasticsearch docker imagezammad/zammad-docker-compose
elasticsearch.imageTagElasticsearch docker image tagzammad-elasticsearch-4.1.0-31
elasticsearch.clusterNameElasticsearch cluster namezammad
elasticsearch.replicasElasticsearch replicas1
elasticsearch.clusterHealthCheckParamsWorkaround to get ES test work in GitHubCI"timeout=1s"
memcached.enabledUse Memcached dependencytrue
memcached.replicaCountMemcached replicas1
postgresql.enabledUse PostgreSQL dependencytrue
postgresql.postgresqlUsernamePostgreSQL userzammad
postgresql.postgresqlPasswordPostgreSQL passwordzammad
postgresql.postgresqlDatabasePostgreSQL DBzammad_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

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:

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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartzammad is pinned at v4.0.5 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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