Oreon IT Helm charts / evolution

evolution Helm chart

Version 0.2.1 · app 2.3.7 · MIT · source · Artifact Hub

Evolution API (WhatsApp through Baileys or the official Cloud API, with the manager UI) on Kubernetes, tuned for running it in production rather than with the upstream Docker Compose defaults. Bring your own PostgreSQL (or MySQL) and Redis.

What the chart changes compared with running the image as shipped (measured on 2.3.7, same database, restart with no pending migrations):

Image entrypoint This chart
Start to ready 16.1 s 5.9 s
Memory after start 329 MiB (bash + npm + node) 221 MiB
Pod stop 31.6 s (SIGTERM ignored, killed at the grace period) 2.5 s
Database URL with password in the log on every start never
Health probes GET / calls web.whatsapp.com each time static /manager/ page, no outbound call
Settings not set explicitly taken from the example .env baked into the image (example API key, telemetry on, verbose logs) masked; only chart and your values apply
Time zone America/Sao_Paulo (image default) UTC (defaults.TZ)
User / filesystem root, writable uid 1000, read-only root filesystem, no capabilities

Install

helm repo add oreonit https://oreondev.github.io/helm-charts
helm install evolution oreonit/evolution -n whatsapp --create-namespace -f evolution.yaml
kubectl -n whatsapp get secret evolution -o jsonpath='{.data.AUTHENTICATION_API_KEY}' | base64 -d

evolution.yaml:

database:
  existingSecret: evolution-db          # key DATABASE_CONNECTION_URI:
                                        # postgresql://evolution:...@postgres:5432/evolution?schema=evolution_api
redis:
  uri: redis://redis-master:6379/6      # persistent (AOF), maxmemory-policy noeviction

ingress:
  enabled: true
  className: nginx
  annotations:
    nginx.ingress.kubernetes.io/proxy-body-size: 136m
    nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
  hosts:
    - host: whatsapp.example.com
      paths: [{ path: /, pathType: Prefix }]
  tls:
    - secretName: whatsapp-tls
      hosts: [whatsapp.example.com]

config:                                 # any Evolution API variable
  WEBHOOK_GLOBAL_ENABLED: "true"
  WEBHOOK_GLOBAL_URL: https://n8n.example.com/webhook/whatsapp
  WEBHOOK_EVENTS_MESSAGES_UPSERT: "true"
  S3_ENABLED: "true"
  S3_BUCKET: whatsapp-media
  S3_ENDPOINT: storage.googleapis.com
secretEnv:
  S3_ACCESS_KEY: ...
  S3_SECRET_KEY: ...

metrics:
  enabled: true
  serviceMonitor: { enabled: true }
  prometheusRule: { enabled: true }

Redis matters more than it looks: the signal keys of every paired phone are in it. If Redis loses them (no persistence, or an eviction policy that drops keys) the phones are logged out and need a new QR scan.

PgBouncer: point database.uri at PgBouncer with pgbouncer=true and set database.migrations.uri to the direct server (migrations need a session connection).

Values

Key Default
image.tag / image.digest v + appVersion pin one in production
serverUrl first ingress/HTTPRoute host SERVER_URL
auth.apiKey / auth.existingSecret generated global API key
database.provider postgresql or mysql
database.uri / database.existingSecret DATABASE_CONNECTION_URI, templated
database.migrations.enabled / .uri true / uri init container, direct URL for PgBouncer setups
database.save.* all on except historic what is stored
redis.enabled / redis.uri / redis.existingSecret true CACHE_REDIS_URI
metrics.enabled, .serviceMonitor.enabled, .prometheusRule.enabled false
config {} any variable, overrides defaults
secretEnv {} secret variables, into the chart's Secret
extraEnvFrom [] your ConfigMaps/Secrets, loaded last so they win
maskImageDotenv true hide the image's example .env
resources 100m / 384Mi, limit 1Gi
nodeMaxOldSpaceMB 75% of the memory limit
persistence.enabled / .store.enabled false signal keys without Redis / media without S3
ingress.*, httpRoute.* off
manager.enabled true the /manager UI; probes fall back to TCP when off

Everything is validated by values.schema.json.

Upgrading from 0.1.0

0.1.0 was a generic scaffold. The selector labels are unchanged, so helm upgrade works in place, but:

Licence

MIT. Maintained by Oreon IT, a DevOps, SRE and cloud consultancy in London. If you want WhatsApp automation run on a production Kubernetes platform with observability built in, that is the day job.

Oreon IT

Maintained by Oreon IT

A London cloud, DevOps and SRE consultancy. If you want this chart rolled out and tuned for your platform, we can help.