n8n

by HelmForge

Helm chartv2.2.3App 3.3.0Apache-2.0Verified publisher

n8n workflow automation platform with SQLite or PostgreSQL and optional Redis queue mode

About this chart

n8n Helm Chart

Deploy n8n on Kubernetes — a workflow automation platform for technical teams.

Features

  • SQLite by default — zero database configuration needed
  • PostgreSQL subchart — bundled via HelmForge dependency
  • External database — connect to existing PostgreSQL
  • Queue mode — Redis-backed horizontal scaling with worker pods
  • Redis subchart — bundled via HelmForge dependency for queue mode
  • Worker-aware persistence — queue workers keep the main data PVC by default for upgrade compatibility, with an opt-out for RWO scheduling
  • Scheduled backups — database-aware CronJob with S3 upload
  • Ingress support — TLS with cert-manager, auto-detected webhook URL
  • Serialized main upgrades — Recreate prevents concurrent revisions from running database migrations
  • Encryption key — auto-generated and persisted across upgrades
  • Gateway API — HTTPRoute for clusters running Envoy Gateway or similar
  • Dual-stack networking — IPv4/IPv6 service support
  • External Secrets Operator — ExternalSecret for Vault, AWS Secrets Manager, and more
  • Explicit listener contracts — configurable HTTP, task broker, and runner health ports
  • Least-privilege pod identity — Kubernetes API token mounting is disabled by default

Architecture

The main Deployment serves the editor and webhooks through containerPorts.http. In external task-runner mode, each n8n process hosts a broker on containerPorts.runnerBroker and its same-pod runner sidecar exposes health on containerPorts.runnerHealth. The chart wires the supported N8N_PORT, N8N_RUNNERS_BROKER_PORT, broker URI, and runner health variables to the same values so declarations and real listeners cannot drift.

SQLite is a single-main-pod mode. PostgreSQL is required before enabling Redis queue mode and worker Deployments. See Chart design for the full trust, scaling, and observability boundaries.

Installation

HTTPS repository:

helm repo add helmforge https://repo.helmforge.dev
helm repo update
helm install n8n helmforge/n8n

OCI registry:

helm install n8n oci://ghcr.io/helmforgedev/helm/n8n

Basic Example (SQLite)

# values.yaml
persistence:
  enabled: true
  size: 5Gi

PostgreSQL + Queue Mode Example

postgresql:
  enabled: true
  auth:
    database: n8n
    username: n8n
    password: "strong-password"

queue:
  enabled: true
  workers: 2

redis:
  enabled: true
  auth:
    password: "redis-password"

ingress:
  enabled: true
  ingressClassName: traefik
  hosts:
    - host: n8n.example.com
      paths:
        - path: /
          pathType: Prefix
  tls:
    - secretName: n8n-tls
      hosts:
        - n8n.example.com

External Database Example

database:
  external:
    vendor: postgres
    host: db.example.com
    name: n8n
    username: n8n
    existingSecret: n8n-db-credentials

Dual-Stack Service

service:
  ipFamilyPolicy: PreferDualStack
  ipFamilies:
    - IPv4
    - IPv6

Gateway API (HTTPRoute)

Requires Gateway API CRDs and a compatible controller (e.g. Envoy Gateway).

gateway:
  enabled: true
  parentRefs:
    - name: envoy-gateway
      namespace: envoy-gateway-system
  hostnames:
    - n8n.example.com

Note: gateway.parentRefs is required when gateway.enabled=true. Existing releases that still carry gatewayAPI.enabled, gatewayAPI.gatewayName, and gatewayAPI.gatewayNamespace from older chart values remain supported as a deprecated upgrade alias. New configuration should use gateway.parentRefs.

External Secrets Operator (ESO)

Set encryptionKey.existingSecret so the chart-managed encryption key Secret is suppressed and the ExternalSecret is the single source of truth.

encryptionKey:
  existingSecret: n8n-eso-secret
  existingSecretKey: encryption-key

externalSecrets:
  enabled: true
  secretStoreRef:
    name: vault-backend
    kind: ClusterSecretStore
  data:
    - secretKey: encryption-key
      remoteRef:
        key: n8n/credentials
        property: encryption-key

Key Values

KeyDefaultDescription
image.repositorydocker.io/n8nio/n8nn8n container image repository
image.tag3.3.0n8n container image tag
commonAnnotations{}Annotations added to every chart-owned resource
containerPorts.http5678Main n8n process HTTP listener
containerPorts.runnerBroker5679External task-runner broker listener
containerPorts.runnerHealth5680External runner sidecar health listener
n8n.encryptionKey""Encryption key for credentials (auto-generated)
n8n.webhookUrl""Webhook URL (auto-detected from ingress)
n8n.logLevelinfoLog level (info, warn, error, debug)
n8n.diagnosticsEnabledfalseShare anonymous diagnostics with n8n
n8n.gracefulShutdownTimeout60Graceful shutdown timeout in seconds for main and workers
database.modeautoDatabase mode (auto, sqlite, external, postgresql)
postgresql.enabledfalseDeploy PostgreSQL subchart (helmforge/postgresql 2.2.2)
postgresql.initdb.scriptsn8n extension bootstrapCreates PostgreSQL extensions required by n8n migrations
queue.enabledfalseEnable queue mode (requires Redis and a non-SQLite database)
queue.workers1Number of worker replicas
queue.concurrency10Concurrent workflows per worker
queue.persistence.shareMainVolumetrueMount the main n8n data PVC into worker pods
terminationGracePeriodSeconds75Kubernetes pod shutdown grace period
redis.enabledfalseDeploy Redis subchart (helmforge/redis 3.1.0)
taskRunners.modeexternalTask runner mode (internal or external)
taskRunners.image.repositorydocker.io/n8nio/runnersExternal task runner sidecar image repository
taskRunners.image.tag""External task runner sidecar tag (defaults to image.tag)
taskRunners.autoShutdownTimeout15External runner launcher idle shutdown timeout
taskRunners.authToken""External runner auth token, auto-generated when empty
taskRunners.nativePython.enabledfalseEnable native Python runner integration
taskRunners.extraEnv[]Additional environment variables for external task runner containers in main and worker pods
persistence.enabledtrueEnable persistent storage
persistence.size5GiPVC size
resources.requests.memory512MiDefault memory request for the main pod
securityContext.runAsNonRoottrueRun n8n containers as the upstream non-root node user
ingress.enabledfalseEnable ingress
backup.enabledfalseEnable S3 backups
backup.s3.credentialsFromPodIdentityfalseUse IRSA or EKS Pod Identity instead of static S3 keys
backup.s3.region""AWS region required for workload identity
backup.serviceAccount.createtrueCreate the dedicated backup ServiceAccount
backup.serviceAccount.name""Existing dedicated backup ServiceAccount when creation is disabled
backup.serviceAccount.annotations{}Workload identity annotations for the backup ServiceAccount
service.ipFamilyPolicy~IP family policy (SingleStack, PreferDualStack, RequireDualStack)
service.ipFamilies[]IP families override (IPv4, IPv6)
gateway.enabledfalseEnable Gateway API HTTPRoute
gateway.parentRefs[]Gateway parentRefs (required when gateway.enabled=true)
gateway.hostnames[]HTTPRoute hostnames
externalSecrets.enabledfalseRender ExternalSecret resource
externalSecrets.apiVersionexternal-secrets.io/v1ExternalSecret API version
serviceAccount.automountServiceAccountTokenfalseMount the Kubernetes API token into main and worker pods
externalSecrets.refreshInterval"0"Refresh interval ("0" = one-time sync)
externalSecrets.secretStoreRef.name""SecretStore name (required when enabled)
externalSecrets.secretStoreRef.kindSecretStoreSecretStore kind
externalSecrets.data[]Remote key mappings (must include encryption-key entry)

Troubleshooting

  • If the editor or readiness probe fails after a port override, confirm that containerPorts.http renders both as the container port and N8N_PORT.
  • If Code nodes cannot reach a runner, compare containerPorts.runnerBroker with N8N_RUNNERS_BROKER_PORT and N8N_RUNNERS_TASK_BROKER_URI in the same pod, then inspect both container logs.
  • If a runner is unhealthy, confirm that containerPorts.runnerHealth matches N8N_RUNNERS_LAUNCHER_HEALTH_CHECK_PORT.
  • If queue workers do not start, verify PostgreSQL, Redis, the shared encryption key, and the worker's wait-for-main init-container logs.
  • If credentials cannot be decrypted after restore, restore the original encryption key before starting n8n.

Upgrade Notes

Upgrading to 2.44.4

n8n 2.44.4 is an upstream release containing new features, bug fixes, and stability improvements. Keep the main application and external task runners images aligned (docker.io/n8nio/runners:2.44.4). Review the official 2.44.4 release notes.

Upgrading to 2.43.4

n8n 2.43.4 includes the 2.42 and 2.43 maintenance lines and fixes duplicate Chat Hub segment handling in queue mode and deferred tool-call resumption for tools loaded by a skill. Agents remain enabled by default; this does not add a Kubernetes workload or RBAC requirement. Back up the database and data volume, preserve the encryption key, and validate workflows and credentials in staging before upgrading. Keep the app and external runner tags aligned; an empty taskRunners.image.tag inherits image.tag.

Use helm upgrade --reset-then-reuse-values with image.tag=2.43.4 and update any separately pinned runner tag. Existing generated encryption keys and runner tokens are retained through Helm lookup; use existing Secrets for offline rendering or GitOps. Automatic database migrations require a recoverable backup.

Main Deployment updates use Recreate in every database mode to stop the old revision before the new version runs database migrations. Plan for brief downtime. Queue workers are a separate Deployment; drain and stop them before upgrades with incompatible migrations. Set queue.workers=0 in the upgrade that deploys the new main version and wait for every worker pod to terminate. Do not rely on kubectl scale, because Helm reapplies the configured worker count. After the new main pod is ready, run a second Helm upgrade with the intended queue.workers value. The Python toggle taskRunners.nativePython.enabled now controls the n8n 2.x variable N8N_PYTHON_ENABLED; it remains disabled by default and requires external runners.

The Redis dependency moves to 3.0.0 with unchanged image, storage and authentication defaults and corrected TLS/custom-port probes. Review each intervening release from 2.39.0 through 2.43.4. For source-control HTTPS remotes with a private CA, GIT_SSL_CAINFO is now honored; mount the trust file and pass its path through the existing environment extension when needed.

MySQL and MariaDB storage migration

n8n removed MySQL/MariaDB storage in version 2.0. Earlier chart releases still exposed these unsupported options. This chart now rejects mysql.enabled=true, database.mode=mysql and non-PostgreSQL external vendors, and no longer bundles MySQL or MySQL backup jobs. The MySQL workflow node is unaffected.

If an older deployment uses MySQL/MariaDB, stop here and migrate its data using the upstream migration procedure on a compatible source release. Back up the database and encryption key, migrate into a separate PostgreSQL instance, and verify credentials, workflows and executions before switching traffic. Changing database.mode alone does not migrate data. Do not apply this release over an existing bundled MySQL installation until its data has been migrated and its backup and PVC recovery have been verified.

See the 2.0 storage migration guidance and upstream releases.

The chart defaults to N8N_RUNNERS_MODE=external. It creates a shared auth token, opens the broker port, and runs a docker.io/n8nio/runners sidecar next to the main pod and each queue worker. This avoids the missing-Python warning produced by internal runner mode in the upstream n8nio/n8n image and gives each queue worker its own runner, as required by n8n external task runner architecture.

Use taskRunners.extraEnv for runner-container settings such as GENERIC_TIMEZONE, NODE_OPTIONS, or N8N_RUNNERS_MAX_OLD_SPACE_SIZE. In external mode, Code node module allowlists such as NODE_FUNCTION_ALLOW_BUILTIN and NODE_FUNCTION_ALLOW_EXTERNAL must be set as env-overrides in /etc/n8n-task-runners.json inside the runner image; setting them only through taskRunners.extraEnv does not configure launched runners. See the upstream task runner configuration.

Anonymous diagnostics are disabled by default with N8N_DIAGNOSTICS_ENABLED=false, which keeps self-hosted clusters private and reduces startup log noise. Operators can opt in with n8n.diagnosticsEnabled=true.

Resources Generated

ResourceCondition
Deployment (main)Always
Deployment (worker)queue.enabled
ServiceAl

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.2.3 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