Helm chartv2.25.7App 2.25.7Apache-2.0

A Helm chart for deploying n8n workflow automation on Kubernetes

About this chart

n8n Helm Chart

Warning: This chart is a work in progress and not yet ready for production use.

A Helm chart for deploying n8n workflow automation on Kubernetes.

Architecture

By default the chart deploys a single n8n main pod using SQLite. Set worker.replicas > 0 to enable queue mode with separate workers. Enable webhook.enabled to add dedicated webhook processors.

SetupComponentsDatabaseRedis
Default1 main podSQLite or PostgreSQLNo
Workersmain + N workersPostgreSQLYes
Workers + webhooksmain + N workers + N webhook processorsPostgreSQLYes
Multi-main (HA)M mains + N workersPostgreSQLYes

Dashed boxes are optional. Without workers, SQLite can be used and Redis is not needed.

graph TD
    subgraph main_box["main [main.replicas: 1+]"]
        M[n8n main]:::comp
    end

    subgraph worker_box["workers [worker.replicas>0]"]
        W[n8n worker x N]:::comp
    end

    subgraph webhook_box["webhooks [webhook.enabled: true]"]
        WH[webhook processor x N]:::comp
    end

    PG[(PostgreSQL)]:::infra
    Redis[(Redis)]:::infra

    subgraph s3_box["S3 [externalS3.enabled: true]"]
        S3[(S3 bucket)]:::infra
    end

    M --- PG
    W --- PG
    WH --- PG
    M --- Redis
    W --- Redis
    WH --- Redis
    M -.- S3
    W -.- S3

    classDef comp fill:#ede9fe,stroke:#7c3aed,color:#5b21b6
    classDef infra fill:#dbeafe,stroke:#2563eb,color:#1e40af
    style main_box fill:#fef3c7,stroke:#d97706,color:#92400e
    style worker_box fill:#fefce8,stroke:#d97706,color:#92400e,stroke-dasharray: 5 5
    style webhook_box fill:#fefce8,stroke:#d97706,color:#92400e,stroke-dasharray: 5 5
    style s3_box fill:#fefce8,stroke:#d97706,color:#92400e,stroke-dasharray: 5 5

Task runners

Task runners execute workflow code in any setup. Two modes:

  • internal (default): runners execute inside the worker process
  • external: runners run as sidecar containers alongside the main pod (no workers) or each worker pod (with workers), using the n8nio/n8n-runner image

External runners support language selection (javascript, python) passed as CMD args. You can run a single runner handling both languages or split them into separate containers with per-language images.

Installation

helm install n8n oci://ghcr.io/atheo-ingenierie/charts/n8n --version <tag>

To install from source:

helm install n8n .

Examples

Minimal (standalone with SQLite)

# values-standalone.yaml
persistence:
  enabled: true
secret:
  N8N_ENCRYPTION_KEY: "change-me-to-a-random-string"

Standalone with PostgreSQL

# values-standalone-pg.yaml
database:
  type: postgresdb
  postgresdb:
    host: postgres.default.svc
    database: n8n
    user: n8n
    password: "my-password"
secret:
  N8N_ENCRYPTION_KEY: "change-me-to-a-random-string"

With workers (internal runners)

# values-queue.yaml
database:
  type: postgresdb
  postgresdb:
    host: postgres.default.svc
    database: n8n
    user: n8n
    password: "my-password"
externalRedis:
  host: redis.default.svc
worker:
  replicas: 3
secret:
  N8N_ENCRYPTION_KEY: "change-me-to-a-random-string"

With workers and external runners (split by language)

# values-queue-external.yaml
database:
  type: postgresdb
  postgresdb:
    host: postgres.default.svc
    database: n8n
    user: n8n
    existingSecret: my-db-secret
    existingSecretPasswordKey: password
externalRedis:
  host: redis.default.svc
  existingSecret: my-redis-secret
  existingSecretPasswordKey: redis-password
runners:
  mode: external
  authToken: "my-runner-secret-token"
  containers:
    - languages: ["javascript"]
      image:
        repository: n8nio/n8n-runner-js
    - languages: ["python"]
      image:
        repository: n8nio/n8n-runner-python
worker:
  replicas: 3
webhook:
  enabled: true
  replicas: 2
secret:
  N8N_ENCRYPTION_KEY: "change-me-to-a-random-string"

With workers and S3 binary storage

# values-queue-s3.yaml
database:
  type: postgresdb
  postgresdb:
    host: postgres.default.svc
    database: n8n
    user: n8n
    password: "my-password"
externalRedis:
  host: redis.default.svc
externalS3:
  enabled: true
  host: s3.us-east-1.amazonaws.com
  bucketName: my-n8n-bucket
  bucketRegion: us-east-1
  accessKey: "AKIAIOSFODNN7EXAMPLE"
  accessSecret: "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
worker:
  replicas: 3
secret:
  N8N_ENCRYPTION_KEY: "change-me-to-a-random-string"

With Redis authentication

# values-redis-auth.yaml
database:
  type: postgresdb
  postgresdb:
    host: postgres.default.svc
    database: n8n
    user: n8n
    password: "my-password"
externalRedis:
  host: redis.default.svc
  existingSecret: my-redis-secret
  existingSecretPasswordKey: redis-password
worker:
  replicas: 3
webhook:
  enabled: true
  replicas: 2
secret:
  N8N_ENCRYPTION_KEY: "change-me-to-a-random-string"

Multi-main (HA)

Multiple main instances for high availability. One is elected leader (runs triggers + pruning), the rest handle API/UI/webhooks. Requires sticky sessions at the ingress level (e.g. nginx.ingress.kubernetes.io/affinity: cookie).

# values-multi-main.yaml
database:
  type: postgresdb
  postgresdb:
    host: postgres.default.svc
    database: n8n
    user: n8n
    password: "my-password"
externalRedis:
  host: redis.default.svc
main:
  replicas: 3
  multiMain:
    ttl: 10
    checkInterval: 3
worker:
  replicas: 3
ingress:
  enabled: true
  className: nginx
  annotations:
    nginx.ingress.kubernetes.io/affinity: cookie
  hosts:
    - host: n8n.example.com
      paths:
        - path: /
          pathType: Prefix
secret:
  N8N_ENCRYPTION_KEY: "change-me-to-a-random-string"

Values reference

General

ParameterDescriptionDefault
image.repositoryn8n image repositoryn8nio/n8n
image.tagn8n image tagappVersion
confign8n env vars (ConfigMap){}
secretSensitive n8n env vars (Secret){}

Database

ParameterDescriptionDefault
database.typesqlite or postgresdbsqlite
database.postgresdb.hostPostgreSQL host""
database.postgresdb.portPostgreSQL port5432
database.postgresdb.databaseDatabase namen8n
database.postgresdb.userDatabase usern8n
database.postgresdb.passwordDatabase password (plain text)""
database.postgresdb.existingSecretExisting secret name for DB password""
database.postgresdb.existingSecretPasswordKeyKey in the existing secretpassword

Task runners

ParameterDescriptionDefault
runners.modeinternal or externalinternal
runners.authTokenShared auth token between worker and runners (required for external)""
runners.image.repositoryDefault runner imagen8nio/runners
runners.image.tagDefault runner tagappVersion
runners.resourcesResources for all runner sidecars{}
runners.extraEnvExtra env vars for all runner sidecars[]
runners.containersList of runner sidecar definitions1 runner with [javascript, python]
runners.containers[].languagesLanguages for this runner (CMD args)-
runners.containers[].imageOptional image override for this runner-

Components

ParameterDescriptionDefault
main.replicasNumber of main pods (>1 enables multi-main HA, requires workers)1
main.multiMain.ttlLeader key TTL in seconds10
main.multiMain.checkIntervalLeader check interval in seconds3
main.resourcesMain process resources{}
main.extraEnvExtra env vars for main[]
worker.replicasNumber of worker pods (>0 enables queue mode, requires PostgreSQL + Redis)0
worker.concurrencyMax concurrent executions per worker (--concurrency)10
worker.resourcesWorker resources{}
worker.extraEnvExtra env vars for workers[]
webhook.enabledEnable webhook processorsfalse
webhook.replicasNumber of webhook pods2
webhook.urlExternal webhook URL (defaults to https://<ingress host>)""
webhook.resourcesWebhook resources{}
webhook.extraEnvExtra env vars for webhooks[]

All components also support podAnnotations, podLabels, nodeSelector, tolerations, and affinity.

External S3

ParameterDescriptionDefault
externalS3.enabledEnable S3 binary data storagefalse
externalS3.hostS3 host (e.g. s3.us-east-1.amazonaws.com)""
externalS3.bucketNameS3 bucket name""
externalS3.bucketRegionS3 bucket region""
externalS3.accessKeyS3 access key (plain text)""
externalS3.accessSecretS3 access secret (plain text)""
externalS3.existingSecretExisting secret for S3 credentials""
externalS3.existingSecretAccessKeyKeyKey for access key in existing secretaccess-key
externalS3.existingSecretAccessSecretKeyKey for access secret in existing secretaccess-secret

Trusted certificates

An initContainer copies certificates from ConfigMap/Secret sources into a writable emptyDir at /opt/custom-certificates. This avoids permission issues with subPath mounts.

ParameterDescriptionDefault
trustCerts.enabledMount trusted CA certificates (PEM format only)false
trustCerts.imageInitContainer image for copying/splitting certs (must provide sh, cp, and awk)busybox
trustCerts.certificatesList of certificates to mount in /opt/custom-certificates[]
trustCerts.certificates[].configMapNameSource ConfigMap (mutually exclusive with secretName)-
trustCerts.certificates[].secretNameSource Secret (mutually exclusive with configMapName)-
trustCerts.certificates[].keyKey in the ConfigMap/Secret (omit to mount all keys)-
trustCerts.certificates[].nameFilename in mount path (defaults to key; requires key)-
trustCerts.certificates[].splitSplit PEM bundle into individual cert files (requires key)false

Modes:

# Single key from a ConfigMap
trustCerts:
  enabled: true
  certificates:
    - configMapName: my-ca-certs
      key: ca-bundle.crt
      name: my-ca.pem         # optional rename

# Entire ConfigMap (all keys mounted as files)
trustCerts:
  enabled: true
  certificates:
    - configMapName: my-ca-certs

# Split a PEM bundle into individual certs
trustCerts:
  enabled: true
  certificates:
    - configMapName: my-ca-certs
      key: ca-bundle.pem
      split: true

# Entire Secret
trustCerts:
  enabled: true
  certificates:
    - secretName: tls-certs

Persistence

ParameterDescriptionDefault
persistence.enabledEnable PVC for n8n data (single main only)false
persistence.sizePVC size1Gi
persistence.storageClassStorage class""
persistence.accessModesPVC access modes[ReadWriteOnce]

External Redis

ParameterDescriptionDefault
externalRedis.hostRedis host (required when workers or webhooks enabled)""
externalRedis.portRedis port6379
externalRedis.passwordRedis password (plain text)""
externalRedis.existingSecretExisting secret for Redis password""
externalRedis.existingSecretPasswordKeyKey in the existing secretredis-password

Networking

ParameterDescriptionDefault
service.typeService typeClusterIP
service.portService port80
ingress.enabledEnable ingressfalse
ingress.classNameIngress class""
ingress.hostsIngress hosts[{host: n8n.local, paths: [{path: /, pathType: Prefix}]}]
ingress.tlsIngress TLS config[]
testConnection.enabledEnable helm test connection podtrue
testConnection.imageImage for the test connection podbusybox

Validation

The chart validates your configuration and fails with a clear error message if:

  • Invalid database.type (must be sqlite or postgresdb)
  • Invalid runners.mode (must be internal or external)
  • webhook.enabled=true without worker.replicas > 0
  • worker.replicas > 0 with database.type=sqlite
  • worker.replicas > 0 or webhook.enabled=true without Redis configured
  • database.type=postgresdb without a host
  • database.type=postgresdb without a password or existing secret
  • database.postgresdb.password and database.postgresdb.existingSecret both set (mutually exclusive)
  • externalRedis.password and externalRedis.existingSecret both set (mutually exclusive)
  • runners.mode=external without runners.authToken
  • persistence.enabled=true with worker.replicas > 0 (use S3 for binary data with workers)
  • externalS3.enabled=true without host, bucketName, or bucketRegion
  • externalS3.enabled=true without credentials (accessKey/accessSecret or existingSecret)
  • externalS3.accessKey and externalS3.existingSecret both set (mutually exclusive)
  • main.replicas > 1 without worker.replicas > 0 (multi-main requires PostgreSQL + Redis)
  • trustCerts.enabled=true without `trustCerts.ce

Deploy n8n with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has n8n 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 chartn8n is pinned at v2.25.7 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