n8n
by n8n
The official, production-grade Helm chart for n8n, the workflow automation platform. Supports queue mode, multi-main HA, webhook processors, task runners, HPA, PDB, network policies, and S3 external storage.
About this chart
n8n Helm Chart
The official Helm chart for n8n, the workflow automation platform, maintained by n8n. It is built for production use and supports queue mode, multi-main HA, webhook processors, task runners, HPA, PDB, network policies, and S3 external storage.
Release schedule
We release a new chart version every week. Each Wednesday, the day after n8n's weekly release, the chart moves to the latest stable n8n version.
Each chart release pins one n8n version as its appVersion, and installs that version by default. Chart versions are numbered separately from n8n versions, so check the release notes to see which n8n version a release carries.
Chart 1.x installs n8n 2.x. It is maintained on the release/n8n-2.x branch, and its weekly releases stay on n8n 2.x. Chart 2.0 is being built on main and is published as release candidates, 2.0.0-rc.1, 2.0.0-rc.2 and so on. Helm skips release candidates unless you pass --devel or name the exact version, so helm install and helm upgrade keep resolving to the latest 1.x release.
Prerequisites
- Helm 3.12+
- Kubernetes 1.25+
Queue mode (default): requires external PostgreSQL and Redis — this chart does not bundle them. Standalone mode: no external dependencies; uses SQLite with a PersistentVolumeClaim.
Install
# OCI registry (recommended)
helm install n8n oci://ghcr.io/n8n-io/n8n-helm-chart/n8n --version 1.0.0 -f my-values.yaml
Verify the chart
Each release is signed with cosign keyless signing. The signature records that the chart was built by this repository's release workflow, on main or on a release/n8n-<major>.x maintenance branch. No key is involved, so there is nothing for you to download first.
To check a chart version before you install it, run the command below. Replace <chart-version> with the version you pass to helm install --version, for example 1.14.0. This is the chart version, not the n8n version.
cosign verify ghcr.io/n8n-io/n8n-helm-chart/n8n:<chart-version> \
--certificate-identity-regexp '^https://github\.com/n8n-io/n8n-hosting/\.github/workflows/release\.yml@refs/heads/(main|release/n8n-[0-9]+\.x)$' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
The command fails if the chart is unsigned, if it was signed by anything other than that workflow, or if the chart changed after it was signed.
Versions released before signing was introduced have no signature, so the command fails for them.
Quick Start
-
Set up external services — PostgreSQL and Redis for queue mode (not needed for standalone mode)
-
Create required secrets:
./examples/create-secrets.sh -
Choose a values file from the examples directory and customize it
-
Deploy:
helm install n8n oci://ghcr.io/n8n-io/n8n-helm-chart/n8n --version 1.0.0 -f my-values.yaml
Architecture
This chart supports two deployment modes:
- Queue mode (default) — main + workers + optional webhook processors. Requires external PostgreSQL and Redis.
- Standalone mode — single pod with SQLite. No external dependencies. Suitable for development and small-scale use.
In queue mode, three pod types are supported:
| Component | Purpose | Scaling |
|---|---|---|
| main | UI, API, non-production webhooks | 1 replica (or N with multi-main + Enterprise license) |
| worker | Executes workflows from Redis queue | 2+ replicas, stateless |
| webhook-processor | Handles production webhooks (optional) | 2+ replicas, stateless |
All three use the same n8n container image, differentiated by command/args.
Examples
| File | Use case |
|---|---|
| standalone.yaml | Single pod with SQLite, no external dependencies |
| minimal.yaml | Single main pod, minimum config |
| minimal-with-docker.yaml | Quick testing with Docker Postgres/Redis |
| multi-main-queue.yaml | Multi-main HA (Enterprise license required) |
| task-runners.yaml | Queue mode with task runner sidecars |
| production-s3.yaml | Production with S3, HPA, multi-main |
| keda-autoscaling.yaml | Redis queue-length scaling with KEDA |
| https-ingress.yaml | HTTPS Ingress with TLS and webhook processor routing |
| extra-objects.yaml | Extra objects beside the chart: a Traefik IngressRoute, a PrometheusRule and a string entry |
Secret Management
- Core secrets (
secretRefs.existingSecret):N8N_HOST,N8N_PORT,N8N_PROTOCOL, plusN8N_ENCRYPTION_KEYin env mode. For file mode, mount the encryption key file and set its path insecretRefs.env.N8N_ENCRYPTION_KEY_FILE - Database password (
database.passwordSecret): PostgreSQL password — queue mode only - Redis password (
redis.passwordSecret): optional, for authenticated Redis — queue mode only
For production, use an external secrets operator (e.g., External Secrets Operator) rather than storing secrets in values files.
Encryption key file
By default, the chart injects N8N_ENCRYPTION_KEY from the core Secret. To use n8n's file-based configuration instead, set secretRefs.env.N8N_ENCRYPTION_KEY_FILE to the absolute path of a mounted key file. A non-empty file path makes the chart inject N8N_ENCRYPTION_KEY_FILE and omit N8N_ENCRYPTION_KEY from every main, worker, and webhook-processor n8n container.
The existing global extraVolumes and extraVolumeMounts values apply to all of these containers:
secretRefs:
existingSecret: "n8n-core-secrets"
env:
N8N_ENCRYPTION_KEY_FILE: "/run/secrets/n8n/encryption-key"
extraVolumes:
- name: encryption-key
secret:
secretName: n8n-encryption-key
items:
- key: N8N_ENCRYPTION_KEY
path: encryption-key
extraVolumeMounts:
- name: encryption-key
mountPath: /run/secrets/n8n
readOnly: true
In file mode, n8n-core-secrets only needs the other core keys (N8N_HOST, N8N_PORT, and N8N_PROTOCOL). The file path is taken from Helm values even when secretRefs.existingSecret is set; Helm cannot inspect an externally managed Secret to select the mode automatically. Global extra volume mounts are not added to task-runner or user-supplied sidecars, which do not need the n8n encryption key; declare sidecar mounts explicitly if needed.
When the path is set, it wins, and any N8N_ENCRYPTION_KEY in values is ignored. The containers receive the path directly, so the chart-managed Secret never stores it. In file mode that Secret also leaves out N8N_ENCRYPTION_KEY, because no container reads it.
Warning: the key file must hold the same key the install already uses. n8n encrypts every stored credential with this key. If the value changes when you switch between
N8N_ENCRYPTION_KEYandN8N_ENCRYPTION_KEY_FILE, n8n can no longer read those credentials.
Ingress and HTTPS
Set ingress.enabled=true to create the main Ingress for the n8n UI, API, and test webhooks. Configure ingress.className, controller-specific ingress.annotations, and ingress.tls for HTTPS termination. For cert-manager, add the issuer annotation and set ingress.tls[].secretName to the certificate Secret cert-manager should create.
The chart sets n8n's public URLs from the first ingress host, always with https://. This assumes TLS ends at the ingress or in front of it, for example at a cloud load balancer. If n8n is served over plain HTTP, or on another host, set both URLs yourself:
webhook:
url: http://n8n.internal # N8N_WEBHOOK_URL
editor:
url: http://n8n.internal # N8N_EDITOR_BASE_URL
When webhookProcessor.enabled=true, enable ingress.webhookProcessor.enabled to create a second Ingress for production webhook traffic. The webhook processor Ingress routes /webhook/, /webhook-waiting/, /form/, /form-waiting/, and /mcp/ to webhook processor pods. Test paths such as /webhook-test/ and /mcp-test/ stay on the main Ingress.
MCP Server Trigger with multiple webhook processors
MCP Server Trigger endpoints (/mcp/) are served by the webhook processors, so scaling webhookProcessor.replicaCount (or its HPA/KEDA) scales MCP alongside regular webhooks — no dedicated single-replica pod or session affinity is required. This relies on n8n's queue-mode/multi-instance MCP support added in n8n 2.8.0 (n8n-io/n8n#25147), which recreates MCP sessions from Redis and runs tool calls on workers.
Use ingress.sticky.enabled=true for nginx cookie affinity, or service.sessionAffinity.enabled=true for Kubernetes ClientIP affinity. Multi-main deployments require sticky sessions at the load-balancing layer.
See https-ingress.yaml for a complete HTTPS example.
Ports and Health Checks
| Component | Port | Health check |
|---|---|---|
| main | service.port (default 5678) | HTTP liveness /healthz; readiness /healthz/readiness |
| webhook-processor | service.port (default 5678) | HTTP liveness /healthz; readiness /healthz/readiness |
| worker | redis.healthCheck.port (default 5678), no Service | HTTP startup and liveness /healthz; readiness /healthz/readiness |
| task runner broker | taskRunners.broker.port (default 5679) | localhost broker used by task runner sidecars |
Workers consume jobs from Redis and do not receive inbound HTTP traffic, so the chart intentionally does not create a Kubernetes Service for worker pods. The worker port serves health checks only. Worker readiness fails until the worker has its database, migrations and Redis connection.
Scaling Guidance
Scale execution throughput with queueMode.workerReplicaCount and queueMode.workerConcurrency. The built-in HPA can scale main, worker, and webhook processor deployments from CPU and optional memory utilization.
For queue-based scaling, enable keda.enabled=true and configure Redis triggers for workers. KEDA creates ScaledObject resources for workers, and optionally webhook processors, instead of the built-in worker/webhook HPAs.
Once something will actually scale a worker or webhook-processor Deployment, the chart stops setting that Deployment's replicas and leaves the count to the HPA or the ScaledObject. That means KEDA with triggers configured for the component, or the built-in HPA with keda.enabled off, since keda.enabled replaces the worker and webhook HPAs. Kubernetes defaults the field to 1 on first create and the autoscaler takes over from there, so later upgrades neither reset the count nor show as drift on a GitOps sync.
On the first upgrade from a chart version that set replicas, Helm removes the field it used to manage, so an autoscaled Deployment drops to 1 replica once before the autoscaler scales it back up.
queueMode.workerReplicaCount and webhookProcessor.replicaCount still size the Deployments where nothing else will, and queueMode.workerReplicaCount: 0 still removes the worker Deployment altogether.
Webhook processors are an optional scaling layer for high-volume production webhook traffic. Enable them when webhook load should be isolated from the UI/API main pods, and configure ingress or load-balancer routing as described above.
ServiceAccount
By default the chart creates a ServiceAccount named n8n. To use an externally-managed ServiceAccount (e.g. one created by Terraform for IRSA), set serviceAccount.create: false and change serviceAccount.name to the name of the existing SA:
serviceAccount:
create: false
name: "my-external-sa" # must already exist in the release namespace
To use the namespace's default ServiceAccount, set name: "". If you set create: false without also changing name from the chart default "n8n", rendering will fail with a clear error — this prevents pods from being wired to a ServiceAccount that was never created.
Key Configuration
| Value | Description | Default |
|---|---|---|
image.repository | n8n image | docker.n8n.io/n8nio/n8n |
image.tag | n8n version | "" (uses the chart's appVersion) |
image.digest | Pin the n8n image by digest (sha256:...); replaces image.tag when set | "" |
taskRunners.image.digest | Pin the runner image by digest; replaces taskRunners.image.tag when set. With task runners enabled, set both digests or neither | "" |
queueMode.workerReplicaCount | Number of worker pods | 2 |
queueMode.workerConcurrency | Jobs per worker | 10 |
multiMain.enabled | Multi-main HA (Enterprise). Requires queueMode.enabled and license.enabled | false |
webhookProcessor.enabled | Dedicated webhook pods | false |
taskRunners.enabled | Task runner sidecars | false |
ingress.enabled | Create Ingress resource | false |
persistence.enabled | PVC for main pods | false |
persistence.annotations |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartn8n is pinned at v1.21.0 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