The Official n8n Helm Chart: Kubernetes with Guardrails

The official Helm chart from n8n has five stars on Artifact Hub, while the two big community charts have 93 and 68. Since December 1, it is worth a look anyway. Version 2.0.0 installs n8n 3.0 and rejects broken values at install time instead of letting them fail in the running cluster.
I installed the chart in queue mode on a local Kubernetes cluster, ran workflows on it and misconfigured it on purpose. The checks work. They do have a clear limit, though, and the upgrade from the old chart line cannot simply be rolled back.
Two chart lines for two n8n versions
The chart lives in the n8n-io/n8n-hosting repository and is distributed only as an OCI artifact through the GitHub Container Registry. There is no helm repo add. You install directly from oci://ghcr.io/n8n-io/n8n-helm-chart/n8n. According to the README, new versions come out weekly.
Since December, n8n has maintained two lines in parallel (README):
| Chart | installs | Branch | receives |
|---|---|---|---|
| 2.x | n8n 3.x | main | all changes |
| 1.x | n8n 2.x | release/n8n-2.x | fixes and necessary additions for as long as n8n 2.x is supported |
Both lines are published to the same OCI repository. Running helm install or helm upgrade without --version gets you the latest 2.x and therefore n8n 3.0. That is the biggest risk of the switch. An upgrade script that used to pull the latest chart will now try to move the instance to a new major version of n8n. The old line for n8n 2.x continues to be maintained in parallel.
Each chart version pins an n8n version as its appVersion. Chart 2.0.0 installs n8n 3.4.1, which according to the n8n docs is the first stable release of the 3.x series. Chart and n8n version numbers are independent of each other.
Queue mode in the chart, database and Redis outside
The chart has two modes. Standalone is a single pod with SQLite on a persistent volume, meant for tests and small installations. The default is queue mode, which I set up with Docker Compose in article 11 of the n8n series. A main process accepts requests and puts executions into a Redis queue, and workers pick them up there and run them.

All three pod types use the same n8n image and differ only in their start command. Main serves the editor, the API and test webhooks. Workers run the workflows. Optionally, webhook processors handle production webhooks under /webhook/, /form/ and /mcp/ and keep that load away from the editor. On request, the chart creates a second ingress rule that routes exactly these paths to the webhook processors.
PostgreSQL and Redis are not part of it. The README says so explicitly: “this chart does not bundle them”. Running n8n in queue mode therefore requires a database and a Redis instance that you operate yourself or rent as a managed service. For production that is the right call, because a database that comes as a by-product of an application chart is a bad database. For a first try, though, it means the database, Redis and the secrets have to be in place before the actual helm install.
Beyond the basic building blocks, the chart covers the usual operational scope: HorizontalPodAutoscalers for main, workers and webhook processors, autoscaling via KEDA based on the length of the Redis queue bull:jobs:wait, PodDisruptionBudgets, NetworkPolicies and S3 as storage for binary data. Two features depend on a license. Running several main pods in multi-main mode requires an Enterprise license, S3 for binary data a Business or Enterprise license. Without S3, binary data in queue mode ends up in the database, with a limit of 512 MiB per file.
For external access, chart 2.0 now supports a Gateway API HTTPRoute alongside the classic Ingress. The timing is good. The chart’s examples still use ingress-nginx, and the Kubernetes project retired ingress-nginx in March 2026. It has not received security updates since. For a new setup, a different ingress controller or the Gateway variant is the better choice.
Hands-on: queue mode in kind
I tested with kind, which starts a Kubernetes cluster in Docker. The n8n docs on the Helm chart also recommend it for local experiments. The setup was kind 0.33.0 with Kubernetes 1.37.0, Helm 4.1.3, chart 2.0.0 and n8n 3.4.1. The cluster ran on an Apple Silicon Mac, with four cores and 16 GB assigned to Docker.
Namespace and secrets come first. The chart creates neither the encryption key nor the token for the task runners. The task runners execute the code of Code nodes in a separate container next to the worker. Both values go into a secret that has to exist beforehand:
kind create cluster --name n8n-helm
kubectl create namespace n8n
kubectl -n n8n create secret generic n8n-core-secrets \
--from-literal=N8N_ENCRYPTION_KEY="$(openssl rand -base64 32)" \
--from-literal=N8N_RUNNERS_AUTH_TOKEN="$(openssl rand -base64 32)"
kubectl -n n8n create secret generic n8n-db-password \
--from-literal=password="$(openssl rand -base64 24)"
n8n uses the encryption key to encrypt all stored credentials. If it is lost, the credentials in the database can no longer be read. It therefore belongs in the same backup as the database.
I deployed PostgreSQL 17 and Redis 7 as simple deployments with the official images in the same namespace, without volumes and only for the test. After that, the values file for the chart stays short:
secretRefs:
existingSecret: n8n-core-secrets
database:
host: postgres
redis:
host: redis
editor:
url: http://localhost:5678
Queue mode, PostgreSQL as the database type, two workers and the task runners are defaults and therefore do not appear. The installation:
helm install n8n oci://ghcr.io/n8n-io/n8n-helm-chart/n8n \
--version 2.0.0 -n n8n -f my-values.yaml --wait --timeout 10m
helm test n8n -n n8n
Including the image download, Helm reported STATUS: deployed after 73 seconds. The main pod ran with one container, both workers with two, the n8n process and the task runner sidecar. The chart’s connection test passed. According to the container runtime, the n8n image is 374 MB and the runner image 195 MB.
For the actual test, I imported a workflow via the CLI that consists of a webhook and a Code node. The Code node computes a Fibonacci number and returns the execution ID. After n8n publish:workflow, the CLI says a running instance will pick up the change “shortly”. Calls a few seconds later still ended with a 404 for me. After restarting the main pod, the webhook was registered.
Six calls through a port forward to the main service all came back correctly, and the worker logs show the distribution:
worker …rzpqn: Worker started execution 1 (job 1) … 2 … 4 … 6
worker …wlnbg: Worker started execution 3 (job 3) … 5
Main accepted the requests, the workers processed them. The worker log shows that the code ran in the sidecar. Between start and end of the first execution it reports Registered runner "JS Task Runner", so the runner only starts once there is code to run.
According to the manifests in the cluster, the default configuration requests a total of 800 millicores and 1792 MiB of memory, with limits at 4 CPUs and 4 GiB. That is a reservation, not measured usage. Of this, 200 millicores and 256 MiB go to the two runner sidecars.
I also checked the security settings on the running pod. All pods run as UID 1000 with runAsNonRoot and the RuntimeDefault seccomp profile, and the containers forbid privilege escalation and drop all Linux capabilities. The pods no longer get a token for the Kubernetes API, because n8n does not need the API. According to the upgrade guide, this makes the pods meet the requirements of the restricted Pod Security Standard.
The chart rejects wrong values
The biggest change in chart 2.0 is not a feature but a behavior. The chart refuses to render what is obviously wrong and says in the error message what to do instead. Without custom values, helm template fails with two messages:
- taskRunners.enabled=true requires an auth token. Set secretRefs.env.N8N_RUNNERS_AUTH_TOKEN
to a token, which you can generate with: openssl rand -base64 32. …
- secretRefs.env.N8N_ENCRYPTION_KEY must be changed from the default placeholder value, …
A typo in a key name shows up immediately, because the schema does not tolerate unknown keys. queueMode.workerReplicas instead of workerReplicaCount becomes:
- at '/queueMode': additional properties 'workerReplicas' not allowed
In chart 1.x, the key would have been silently ignored, and the installation would have run with the default number of workers. The chart also rejects replicaCount: 2 without multi-main, because otherwise every main pod runs all schedules and triggers on its own and every scheduled workflow runs twice. The message explains exactly that.
These checks end where Helm cannot look. Helm renders templates from values and knows neither the contents of secrets nor whether services are reachable. The default values contain the placeholder your-postgres-hostname as the database host. The chart renders with it without an error, and the problem only shows when n8n cannot find the database. In a second attempt, I created a secret without N8N_RUNNERS_AUTH_TOKEN and installed the chart without --wait:
STATUS: deployed
nt-n8n-main-7599b4fd75-5r9rf 0/2 CreateContainerConfigError
Error: couldn't find key N8N_RUNNERS_AUTH_TOKEN in Secret notoken/n8n-core-secrets
Helm reports success, and the pod never starts. The cause is in the events, not in Helm’s output. Anyone installing the chart from a pipeline should therefore always use --wait or run helm test afterwards.
Code nodes run in the sidecar, with a shorter timeout
With chart 2.0, task runners are enabled by default. The code of a Code node then no longer runs in the n8n process but in a separate container in the same pod. The runner connects via localhost on port 5679 to the broker in the worker, the part of the worker process that hands tasks to the runner, and authenticates with the token from the secret. In queue mode, only the workers get a sidecar, because only they execute workflows. The runner image contains runtimes for JavaScript and Python.
The separation protects the worker from foreign code but introduces a new limit. According to the upgrade guide, n8n 3.0 aborts a JavaScript task after 60 instead of 300 seconds. I checked this with two Code nodes that were each meant to stay busy for 75 seconds:
| Code node | aborted after | Error |
|---|---|---|
await new Promise(r => setTimeout(r, 75000)) | 61.7 s | TaskRunnerExecutionTimeoutError: Task execution timed out after 60 seconds |
| loop computing for 75 s | 36.5 s | TaskRunnerFailedHeartbeatError: Task execution aborted because runner became unresponsive |
The first row confirms the new timeout. The second shows a case that is easy to miss. A loop that keeps the CPU fully busy blocks the runner so completely that it stops answering the broker’s control messages. The broker then declares it dead after just over half a minute.
A higher timeout does not help here, because the abort comes from the heartbeat, not from the timeout. Long computations belong in smaller chunks, which is also what n8n’s error message says.
If you need the old behavior, set N8N_RUNNERS_TASK_TIMEOUT: 300 in two places, env.shared and env.taskRunner, because n8n and the runner each enforce the limit themselves. In general, chart 2.0 lists environment variables as simple maps per component in the values, instead of lists with name and value as before.
The upgrade only goes one way
Moving from chart 1.x to 2.0 also means moving from n8n 2 to n8n 3. The upgrade guide describes seven steps in a fixed order. Three of them matter most.
First, read the Migration Report, and do it on the old instance. Under Settings > Migration Report, n8n 2.x lists the workflows and settings that will no longer work with n8n 3.0. The report shows what will stop working after the upgrade and is therefore only useful beforehand. According to the docs, it disappears entirely from n8n 3.5.0 onwards.
Second, back up the database together with the secret that holds the encryption key. n8n 3.0 migrates the database on first start, and n8n 2.x cannot work with the migrated database. helm rollback only restores the Kubernetes manifests. The only way back is therefore restoring the backup.
Third, migrate the values file. The chart includes the script scripts/migrate-values.sh for this, which requires yq v4. I tested it with a typical 1.x file that sets database.useExternal, config.extraEnv, executions.concurrency.productionLimit and ingress.sticky. Rendered against chart 2.0, it produces five errors, each naming the replacement. The script turns it into a valid file and writes a report:
Changed:
- Moved config.extraEnv to env.shared: N8N_LOG_LEVEL, GENERIC_TIMEZONE.
- Moved executions.concurrency.productionLimit to env.worker.N8N_CONCURRENCY_PRODUCTION_LIMIT.
- Removed database.useExternal. …
Check:
- Task runners are on by default in 2.0 and need a token. Add N8N_RUNNERS_AUTH_TOKEN
to the Secret n8n-core-secrets. … the render passes, but the pods do not start without the key.
The last point is exactly the failure from the test above. The script cannot fix it because it does not read secrets, but it points it out. For the upgrade itself, the new file is passed with -f. The guide advises against --reuse-values, because Helm then carries over the defaults of the old chart.
The guide also lists changes that no check detects. These include the shorter timeout, a Content Security Policy that is now enforced, unverified community nodes that are no longer loaded, and Chat Hub, which is now off by default. On top of that comes a NetworkPolicy that, without custom egress rules, now allows all outbound traffic, where chart 1.x only allowed DNS, the database, Redis and port 443.
Behind an ingress, chart 2.0 sets N8N_PROXY_HOPS to 1 so that n8n reads the real client address from the X-Forwarded-For header. Only then do IP allowlists on Webhook nodes work properly. But anyone who can reach the pod directly can set that header, and the chart’s default NetworkPolicy allows access to the service port from anywhere. If you rely on the client address, you have to restrict access to the ingress controller via networkPolicy.ingress. The README shows an example.
Signed, but not without findings
Since version 1.15.0 from October 2026, n8n signs every chart release with cosign through the release workflow on GitHub. The method is called keyless because no long-lived key exists. The certificate is short-lived and derived from the workflow’s GitHub identity. The check from the README passed for 2.0.0:
cosign verify ghcr.io/n8n-io/n8n-helm-chart/n8n:2.0.0 \
--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
For 1.14.0 and older versions, the same command reports no signatures found, as the README announces for the period before signing. The signature proves that the chart comes from the repository’s workflow and has not been modified since. It says nothing about the images.
Artifact Hub’s scanner reports one critical, 18 high, 61 medium and 13 low vulnerabilities for the two images of version 2.0.0. The count alone does not tell whether any of them can be exploited in practice. If you want to run exactly the image you scanned yourself, pin it by digest. The chart provides image.digest and taskRunners.image.digest for that.
Compose for the server, Helm for the cluster
For a single instance on one server, Docker Compose remains the shorter route. The setup from article 2 of the n8n series with Postgres and Caddy needs no cluster, no ingress decision and no secrets in the Kubernetes sense. The Helm chart pays off where Kubernetes is already running and n8n becomes one application among many. The chart then takes care of parts that are easy to forget in hand-written manifests: runner sidecars with a token, autoscaling on queue length, and a configuration that does not let typos through.
Compared with the community charts, the official chart has a structural advantage. According to the README, each line is built and tested for exactly one major version of n8n, and new n8n versions arrive quickly. n8n 3.4.1 came out on November 26, and the chart followed five days later. The best-known community chart is at n8n 2.49.8, the second at 2.36.8.
Chart 2.0’s checks catch many errors at render time. That is exactly why the order in the upgrade guide applies without shortcuts: read the report, back up the database and key, migrate, render, and only then upgrade. The chart can prevent a lot, but the backup is up to you.
Sources
- Artifact Hub: n8n (n8n-io), package page of the official chart
- n8n-io/n8n-hosting, chart repository
- n8n Helm chart, README
- n8n Helm chart, CHANGELOG
- n8n Helm chart, UPGRADING.md (upgrade to 2.0)
- n8n docs: Install with Helm
- n8n docs: 3.0 breaking changes
- n8n docs: Task runners
- n8n docs: Queue mode
- Kubernetes blog: Ingress NGINX Retirement, November 11, 2025
- Artifact Hub: n8n (community-charts)
- Artifact Hub: n8n (open-8gears)
- kind: Kubernetes in Docker
- Sigstore: cosign verify
- KEDA
- yq