open-notificaties

by Open Zaak

Helm chartv0.7.0App 1.3.0

API voor het routeren van notificaties

About this chart

Open Notificaties chart

The Helm chart installs Open Notificaties and by default the following dependencies using subcharts:

Installation

First configure the Helm repository:

helm repo add open-zaak https://open-zaak.github.io/charts/
helm repo update

Install the Helm chart with:

helm install open-notificaties open-zaak/open-notificaties \
    --set "settings.allowedHosts=open-notificaties.gemeente.nl" \
    --set "ingress.enabled=true" \
    --set "ingress.hosts={open-notificaties.gemeente.nl}"

:warning: The default settings are unsafe for production usage. Configure proper secrets, enable persistency and consider High Availability (HA) for the database and the application.

Chart and Open Notificaties versions alignment

Not every version of the chart is compatible with every version of Open Notificaties. The table below describes the supported versions

Chart versionOpen Notificaties version
< 0.5.0< 1.2.0
0.5.01.2.x
0.7.01.3.0 +

Configuration

ParameterDescriptionDefault
tags.postgresqlInstall PostgreSQL subcharttrue
tags.redisInstall Redis subcharttrue
tags.rabbitmqInstall RabbitMQ subcharttrue
image.repositoryThe repository of the Docker imageopenzaak/open-notificaties
image.tagThe tag of the Docker image"" (uses .Chart.AppVersion by default)
replicaCountThe number of replicas1
podLabelsAdditional labels to be set on the open-notification API pods{}
ingress.enabledExpose the application through an ingressfalse
ingress.annotationsAdditional annotations on the API ingress{}
ingress.hostsIngress hosts"{open-notificaties.gemeente.nl}"
ingress.tlsIngress TLS settings"[]"
existingSecretRefer to an existing secret to avoid managing secrets through Helm. See templates/secret.yaml for required contents of your existing secret. This secret is also used for the Worker and Flower components.null
settings.allowedHostsA comma-separated list of hosts allowed by the application"open-notificaties.gemeente.nl"
settings.secretKeyThe secret key of the application"SOME-RANDOM-SECRET"
settings.database.hostThe hostname of PostgreSQL"open-notificaties-postgresql"
settings.database.portThe port of PostgreSQL5432
settings.database.usernameThe username of PostgreSQL"postgres"
settings.database.passwordThe password of PostgreSQL"SUPER-SECRET"
settings.database.nameThe database name of PostgreSQL"open-notificaties"
settings.database.sslmodeThe SSL-mode used by the postgres client. See docs for more info"prefer"
settings.numProxiesThe number of reverse proxies between client and backend container. Set this to 1 if exposing the application through an ingress0
settings.cache.defaultThe Redis cache for the default cache"open-notificaties-redis-master:6379/0"
settings.cache.axesThe Redis cache for the axes cache"open-notificaties-redis-master:6379/0"
settings.email.hostThe hostname of the SMTP server"localhost"
settings.email.portThe port of the SMTP server25
settings.email.usernameThe username of the SMTP server""
settings.email.passwordThe password of the SMTP server""
settings.email.useTLSUse TLS for connecting to SMTP serverfalse
settings.sentry.dsnThe DSN for Sentry Logging""
settings.messageBroker.hostThe URL to the Celery broker"open-notificaties-rabbitmq"
settings.celery.resultBackendThe URL to the Celery result backend"redis://open-notificaties-redis-master:6379/1"
settings.isHttpsUsed to construct absolute URLs and controls a variety of security settingstrue
settings.debugOnly set this to True on a local development environment. Various other security settings are derived from this settingfalse
settings.flower.urlPrefixIf enabled, deploy Flower on a non-root URL""
settings.flower.basicAuthSecure Flower with Basic Authentication. This is a comma-separated list of username:password. You should configure this when flower.ingress.enabled is set to true.""
worker.podLabelsAdditional labels to be set on the open-notification worker pods{}
postgresql.persistence.enabledEnable PostgreSQL persistencyfalse
postgresql.persistence.sizeConfigure PostgreSQL size"1Gi"
postgresql.persistence.existingClaimUse an existing persistent volume claimnull
postgresql.postgresqlDatabaseThe PostgreSQL database name"open-notificaties"
postgresql.postgresqlPasswordThe PostgreSQL administrative password"SUPER-SECRET"
flower.enabledWhether or not to deploy the Flower component, which is a monitoring tool for Celeryfalse
flower.replicaCountThe number of replicas for Celery Flower1
flower.podLabelsAdditional labels to be set for Celery Flower{}
flower.extraEnvVarsConfigure Flower through additional environment variables. For a full list of possibilities, see Flower config docs{}
flower.extraEnvVarsSecretConfigure Flower through additional environment variables. This property should contain secrets like basic-auth. For a full list of possibilities, see Flower config docs{}
flower.ingress.enabledUse a dedicated Ingress for Flower, which can act as a Management Ingress. When Values.ingress.enabled is set to true and this parameter to false, then Flower will be exposed on the main Ingress.false
flower.ingress.annotationsAdditional annotations on the Flower Ingress{}
flower.ingress.hostsFlower Ingress hosts"{open-notificaties-flower.gemeente.nl}"
flower.ingress.tlsFlower Ingress TLS settings"[]"
redis.usePasswordUse a Redis passwordfalse
redis.cluster.enabledEnable Redis clusterfalse
redis.persistence.existingClaimUse existing persistent volume claim for Redis""
redis.master.persistence.enabledEnable persistency for Redis masterfalse
redis.master.persistence.sizeThe size of the Redis master persistent volume"1Gi"
rabbitmq.auth.usernameRabbitMQ username"guest"
rabbitmq.auth.passwordRabbitMQ password"guest"
rabbitmq.auth.erlangCookieRabbitMQ Erlang Cookie"SUPER-SECRET"
rabbitmq.persistence.enabledEnable RabbitMQ persistencyfalse
rabbitmq.persistence.sizeConfigure RabbitMQ size"1Gi"
rabbitmq.persistence.existingClaimUse an existing persistent volume claimnull

Check values.yaml for all the possible configuration options.

Deploy open-notificaties with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has open-notificaties 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 chartopen-notificaties is pinned at v0.7.0 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