Deploying n8n on Kubernetes with the official Helm chart

Deploying n8n on Kubernetes with the official Helm chart puts the main instance, workers, PostgreSQL, Redis and TLS under your cluster controls. This page covers the values, secrets and checks that decide whether the install holds in production, and when Docker Compose is enough.

On this page

What deploying n8n on Kubernetes involves

The official n8n Helm chart, published through the n8n-hosting project, gives a platform or security team a packaged way to run n8n as Kubernetes workloads in a cluster they control. It provides the deployment objects, configuration values and ingress options to start an instance. It does not provide the database, the message broker, the certificates, the encryption key or the upgrade process. Those remain with your team, and each one needs a named owner before the first install. Plan for a PostgreSQL database outside the chart if the instance is meant for production, a Redis service if you intend to run queue mode, a certificate for the public hostname, and a key management decision for the value n8n uses to encrypt stored credentials.

n8n is source-available under the Sustainable Use License, not OSI open source. That license allows use or modification for your own internal business purposes, and it restricts distribution to free, non-commercial use. Running the chart in your cluster does not change those terms, and the chart does not grant a commercial right. Files with .ee in their name or directory fall outside the Sustainable Use License and need a valid n8n Enterprise License. Before the rollout, have legal or procurement confirm which edition, features and use cases your organization needs, and check the current terms in n8n's LICENSE.md rather than relying on this summary.

The license also shapes the architecture. Several features the platform team may expect, including SSO and LDAP, environments with Git, log streaming and multi-main high availability, are tied to paid plans or the Enterprise self-hosted tier according to n8n's pricing page and queue mode documentation. Confirm which of these your design depends on before you commit to a chart values file, so you do not discover a licensing gap after the cluster is built.

Which n8n layout fits your cluster

A single main instance runs the editor, the REST API, triggers, webhooks and workflow executions in one n8n process. In a Kubernetes install this is one n8n pod with PostgreSQL and, if you use it, Redis as supporting services. It is the simplest layout to build, back up and verify, and it suits teams with modest webhook traffic, a limited number of scheduled workflows and no strict uptime target that requires a second instance.

  • Pods: one n8n deployment, plus PostgreSQL and any optional services you run beside it.
  • Execution path: executions run inside the main process, so a heavy workflow can slow the editor and webhooks.
  • Scaling limit: adding replicas of a single main instance is not a supported high availability pattern for this layout.
  • Encryption key: only one process needs the key, so it is stored once in the chart's secret.
  • Licensing: the Community edition and the Sustainable Use License cover this layout for internal business use.

Before you choose this layout, confirm your expected execution volume and whether a restart window is acceptable for your business processes.

Helm values and when each setting fits

This table compares the main value groups in the n8n Helm chart and the decision each one forces. Read each row as a question to answer before the first install, then check the current key names in the chart README and values file in the n8n-hosting repository. The main takeaway is that database, Redis and encryption key choices are hard to change later, so settle them before any workflow or credential exists.

Value groupTrade-offWhat to decide
PostgreSQL (bundled or external)A bundled database is quick for a test cluster but ties backups, upgrades and failover to the chart's lifecycle. An external database fits your existing database service and backup policy.Whether your platform team will own the database. If yes, plan connection limits, SSL and backups before install.
Redis for queue modeRedis is needed only when you run queue mode with workers. Without it, a single main instance handles executions itself, which is simpler to operate.Whether execution volume justifies queue mode. Confirm the Redis license and version your organization accepts, since the Redis licensing changed across the 7.x and 8.x lines.
Worker replica count and concurrencyMore workers spread executions across pods but each worker draws on the same PostgreSQL and Redis capacity. Concurrency per worker sets how many executions run at once inside one pod.Expected peak executions, memory limits per pod and how many workers the database connection pool can serve.
Task runner sidecarsSidecars isolate Code node execution from the main process, which helps security review. They add containers to schedule, size and monitor.Whether workflows run custom JavaScript or Python that must be isolated, and whether the security team expects that isolation.
Ingress and TLSIngress lets the chart expose webhooks and the editor through your controller and certificate process. Webhook URLs must match the public hostname clients use.Ingress class, hostname, certificate source and whether TLS terminates at the cluster or upstream load balancer.
Encryption key secret referenceThe key protects credentials stored in the database. Referencing a Kubernetes Secret keeps it out of values files, but Secrets are stored unencrypted in etcd unless encryption at rest is configured.Who creates and rotates the secret, whether etcd encryption at rest is enabled, and how the same key reaches every main, worker and webhook pod.
When Compose is enoughA single host with Docker Compose has fewer moving parts and no cluster to patch. Kubernetes pays off when you already run a cluster with platform support and need horizontal scaling.Whether you have a cluster team, an upgrade process for Kubernetes minor versions and monitoring in place. If not, a Compose stack may be the safer first step.

How the main instance, Redis, workers and PostgreSQL connect

The request starts at the ingress, which terminates TLS and routes webhook traffic to the main instance or to webhook processors. The main instance handles triggers and passes executions through Redis to a pool of workers, and both the main instance and workers read and write PostgreSQL. The encryption key must reach the main instance and every worker, so the secret store sits on the boundary where Kubernetes Secrets need encryption at rest. Check that every pod sees the same key and that the database and Redis endpoints stay inside the cluster boundary.

Request, queue and data paths for n8n in queue mode on Kubernetes.

How to install n8n on Kubernetes step by step

This sequence takes a cluster you control from a version check to a pinned, TLS-fronted n8n release that runs workflows through a worker and answers webhooks on its public URL.

  1. Confirm the cluster version and support window

    Before anything is installed, check the cluster's Kubernetes minor version against the release support window on the Kubernetes releases page. The project maintains only the three most recent minor releases, so a cluster on an older line will need an upgrade first. Confirm the version of kube-apiserver with your platform team and record it in the change ticket. The step is done when the server version and its end-of-life date are written down and fall inside the supported window at the time of install.

  2. Create the namespace and scoped RBAC

    Create a dedicated namespace for n8n and grant access only to the people and service accounts that will deploy and operate it. Restrict list and watch access to Secrets, because Kubernetes stores Secrets unencrypted in etcd by default. Confirm that encryption at rest is configured for the cluster, or that an external secret store is planned. The step is done when a test user without cluster-admin rights can see the n8n namespace but cannot read Secrets in other namespaces.

  3. Create the encryption key secret

    Generate the n8n encryption key and store it in a Kubernetes Secret in the n8n namespace, or in an external store synced into the cluster. The same key must be available to the main instance and to every worker and webhook processor, because workers need it to read credentials saved in the database. Record where the key is backed up, since losing it makes stored credentials unreadable. The step is done when the Secret exists, the key is held in a backup location your team controls, and no copy sits in the values file or a shared repository.

  4. Provision PostgreSQL and Redis

    Decide whether PostgreSQL and Redis come from the chart's bundled dependencies or from services you already run. Queue mode needs Redis to pass executions between the main instance and workers, and it needs PostgreSQL for workflow and execution data. For an external database, confirm the version and the connection details with your database owner, and create a database user with access limited to the n8n schema. The step is done when both services accept connections from the n8n namespace and the credentials are stored as Secrets.

  5. Write the values file and pin the chart version

    Build a values file that points n8n at PostgreSQL and Redis, enables queue mode with worker replicas, references the encryption key Secret, and sets task runner sidecars where your workflows execute code. Keep credentials out of this file by referencing Secrets. Install from the n8n-hosting chart at an exact version, not a floating tag, and record that version with the image tag. Run a dry-run render and review the output before applying. The step is done when the rendered manifests show the expected Secret references and worker deployment, and the chart and image versions are written in the change record.

  6. Install the chart and wait for readiness

    Install the pinned chart into the n8n namespace with the reviewed values file. Watch the main instance, worker and Redis or PostgreSQL pods until each reports Ready, and read the logs of the main instance for database migration messages and encryption key errors. If a worker fails to start, check that it received the same encryption key as the main instance. The step is done when every pod is Ready and the logs show the instance started without database or key errors.

  7. Configure ingress and TLS

    Create the ingress resource or route that exposes the main instance on its public hostname, and attach a certificate issued by your certificate authority or cert manager. Set the webhook URL and proxy settings so generated webhook addresses use the public hostname and forwarded headers are trusted only from your load balancer. Confirm these settings with the team that owns the ingress controller, since the exact keys depend on your topology. The step is done when the hostname resolves, the certificate chain is valid from outside the cluster, and the editor loads over HTTPS.

  8. Verify with a worker run and a public webhook call

    Create a simple test workflow with a webhook trigger and a step that writes a value, then activate it. Call the webhook through the public URL from outside the cluster, and confirm the response. Check the worker logs to confirm the execution ran on a worker rather than the main instance, and check the execution list in the editor. Record the result and the chart and image versions in the change record. The step is done when the public call returns the expected response, the execution appears as completed, and the worker log shows it processed the job.

How the encryption key reaches every worker

n8n stores credentials in its database in encrypted form, and the key that decrypts them lives in the main instance's configuration. In queue mode, every worker and webhook processor that runs a workflow touching a credential needs that same key, or it cannot read the credential. The practical decision is how the key gets into each pod in the Helm release. Keep one key value, set it once in the chart values or a referenced secret, and confirm that the main, worker and webhook processor deployments all read it. Do not let each deployment generate its own key, because a worker with a different key will fail on credential use in ways that can look like unrelated workflow errors.

Kubernetes Secrets are base64-encoded, not encrypted, and by default they are stored unencrypted in etcd. Before go-live, confirm that the cluster has encryption at rest enabled for Secrets, that RBAC grants list and watch on Secrets only to the service accounts and administrators who need them, and that anyone who can read the namespace cannot dump the key through kubectl get secret. If your policy forbids keys in etcd at all, the alternative is an external store delivered through the Secrets Store CSI Driver. Whichever route you choose, record who can read the key and where backups of etcd are kept, since an etcd snapshot is a copy of the key too.

Losing or rotating the encryption key without a plan makes every stored credential unreadable, and n8n cannot recover them from the database alone. Treat the key as a long-lived secret with an offline copy held under your key custody process, and do not change it during a routine chart upgrade. Ask n8n for its documented rotation steps for your version, and rehearse them on a restored copy of the database before production. Confirm with n8n whether rotation requires re-entering credentials, and write the answer into your runbook before go-live.

Security controls to set before go-live

These controls cover the namespace, the cluster secrets, the database that holds encrypted credentials, the review baseline, the external secret path and the network edge. Each one has a clear owner, so the platform team, security team and n8n administrators know what they must configure and what evidence they must keep. The controls prepare evidence for an assessment, which independent auditors judge.

Pod Security Standards for n8n namespaces

Apply a Pod Security Standards level to the namespace that runs n8n, its workers and any task runner sidecars. The platform team owns the namespace label and the exemption list, and it should stay empty for n8n. Check that n8n pods run without privilege escalation and with a restricted security context, and confirm this with a dry-run before go-live. Ask the chart maintainers which security context values the chart sets by default.

Pod Security Standards

Least-privilege RBAC on Secrets

The Secret holding the n8n encryption key and database password is readable by anyone who can list or watch Secrets in that namespace. The cluster administrator owns role bindings and should limit get, list and watch on that Secret to the service account that runs n8n. Review bindings for CI tools and monitoring agents, since they often hold broad read access that nobody reviews.

Default storage in etcd
Unencrypted

Encryption at rest for etcd

By default Kubernetes stores Secrets unencrypted in etcd, so the n8n encryption key is exposed to anyone who can read etcd backups or disks. The cluster operator owns the encryption configuration and must enable encryption at rest for Secrets before the key is stored. Confirm that etcd snapshots, which the etcd backup plan produces, are encrypted and access controlled as well.

Secrets good practices

CIS Kubernetes Benchmark as a review baseline

Use the CIS Kubernetes Benchmark as the checklist the platform team runs against the cluster before go-live and after each upgrade. Record which recommendations pass, which are accepted with a documented reason, and who approved each exception. The output is evidence that controls were reviewed, not a certification of the cluster, so keep the report with the change record.

CIS Kubernetes Benchmark

Secrets Store CSI Driver for external stores

If your organization keeps credentials in a central vault, the Secrets Store CSI Driver can mount them into the n8n pods without creating a Kubernetes Secret with the same value. The security team owns the vault policy and the platform team owns the SecretProviderClass. Confirm that the encryption key rotation process works with the external store, and test a restart of n8n pods after a secret change.

Ingress TLS and network policies

Terminate TLS at the ingress with certificates your organization manages, and restrict traffic so only the ingress controller reaches n8n and only n8n reaches PostgreSQL and Redis. The network team owns the policies and the certificate lifecycle. Test that workers and webhook processors can still reach the database and Redis after the policies apply, since blocked traffic often appears first as failed executions.

Recommended etcd member count
Odd number

Questions teams ask before installing n8n on Kubernetes

What drives the cost of installing n8n on Kubernetes?

The largest cost is the people time needed to run the platform after the first install, so cost follows the work you hand over and the work your team keeps. Cost components include the initial design and install, the cluster access and networking work, the PostgreSQL and Redis operations, encryption key handling, upgrades and testing. Setup is largely one-time, while upgrades, monitoring and the database and Redis operations recur. Costs rise with the number of environments, the number of workers, and whether you need queue mode or multi-main. Ask any quote to list each of these as a separate line, with who performs it and what is handed over at the end. DeployOpen does not publish prices, and the fees come from the written scope.

How long does an n8n Helm install take on Kubernetes?

The facts available for this page do not give a setup duration, so treat any timeline as unconfirmed until it is written into the scope. The main drivers are how much of the cluster, identity, ingress, certificate and database work is already in place, whether PostgreSQL and Redis are managed services or in-cluster, whether queue mode workers are needed at launch, and how many approval and testing steps your change process requires. Ask for the timeline to list the dependencies it assumes, such as cluster access granted by a specific date. Confirm the scope and its milestones before planning any go-live date.

Can our own team install n8n on Kubernetes without a partner?

Yes, a team with Kubernetes, PostgreSQL and Redis experience can install n8n from the Helm chart, but the work is wider than the chart itself. The chart needs correct values for the database, Redis, the encryption key secret, ingress and TLS, and worker settings. Your team also needs to own cluster security, backup and restore of the database and encryption key, upgrades and the proxy settings that make webhooks work. Assess whether those skills exist in-house and whether anyone will be on call for them. A partner is most useful when the cluster is new, when you need a repeatable install across several environments, or when you need evidence for an assessment.

When is Docker Compose enough instead of Kubernetes for n8n?

Docker Compose is usually enough for a single instance that serves one team and does not need horizontal scaling. Choose Kubernetes when you already run a managed cluster, need several workers that scale with load, or require the same deployment practices as your other services. Compose is simpler to upgrade, debug and back up, but it does not replace the queue mode design, which in either case relies on shared PostgreSQL, Redis and a common encryption key. Confirm the expected execution volume, the number of environments and the staff who will operate the platform before choosing. Our sibling guide on running n8n with Docker Compose in production covers that path.

Does Redis licensing affect how we deploy n8n on Kubernetes?

Redis licensing matters for the license terms you accept, not for whether the Helm chart works. Redis 8.0 and later can be used under a license of your choice among RSALv2, SSPLv1 and AGPLv3, and Redis Ltd. states it plans to keep Redis Open Source under AGPLv3. Redis 7.4.x to 7.8.x use the dual RSALv2 or SSPLv1 license, and neither is OSI-approved. Redis 7.2.x and earlier use BSD-3-Clause. Pick the Redis version and image deliberately, record the license you accepted, and have legal review it if you modify Redis or offer it as a network service. Confirm the choice against the Redis licenses page before the build starts.

Do we need multi-main for high availability on Kubernetes?

Multi-main is not an option for most teams, because n8n restricts it to Enterprise self-hosted deployments and does not offer it in the Community edition or n8n Cloud. Queue mode with several workers is the standard scaling pattern, and it still depends on a single main instance for triggers and webhooks. Plan availability around the components you can reach: the database, Redis, the ingress and the node pool. Ask whether an Enterprise license is in scope before you design for multi-main, and confirm the license cost with n8n, since the pricing page lists Enterprise at custom pricing.

What must our team provide before the n8n Kubernetes install starts?

Your team must provide several items before work begins. These are cluster admin access or a named namespace owner, DNS records for the n8n hostname and webhook URLs, a certificate source and TLS process, and a PostgreSQL database owner with backup responsibility. You also need an encryption key process, meaning who generates the key, where it is stored, who can read it and how it is rotated, because queue mode workers must share it. Add a named contact for change approvals and a plan for where secrets are stored in the cluster. Confirm these in the written scope, since missing items are the most common cause of delay.

What to confirm in your environment

The chart, the cluster and the Redis license all carry versions and terms that change over time. Confirm each one against your own platform before you commit to values, upgrade order or a support model, because a mismatch in any of them is hard to fix after the first production install.

Kubernetes versions and upgrade order

Check which minor versions your clusters run and when each reaches end of life on the Kubernetes releases page. Under the version skew policy, the kube-apiserver is upgraded one minor version at a time and before the controller manager, scheduler and kubelets, and kubelets may trail by up to three minor versions. Ask your platform team for a written upgrade plan that fits your next n8n chart upgrade window.

Latest minor release
1.37
Kubernetes releases

Chart and n8n version pairing

Confirm which n8n version the chart from n8n-hosting deploys by default and whether you pin both the chart version and the image tag. Ask the vendor or your team to record the pair in version control so that a chart update never moves n8n to a new minor release without a review. Compare the pinned version against the n8n release notes before each upgrade.

n8n release notes

Redis license and network offering

Redis 8.0 and later can be used under RSALv2, SSPLv1 or AGPLv3, and the choice you make must be documented. Ask legal to confirm which license applies to your Redis artifacts and whether any modified Redis code is offered to users as a network service, since that triggers source availability duties. Confirm whether the Intel SVS-VAMANA optimizations are in use, because they only work under RSALv2.

Redis licenses

Multi-main is Enterprise only

Plan any high availability design for n8n around a single main instance unless you hold an Enterprise self-hosted license. Multi-main, which runs several main instances, is not available in the Community edition or n8n Cloud. Ask your n8n account contact to confirm in writing which license tier you hold and whether it covers multi-main before you design the ingress and failover layers.

n8n queue mode docs

etcd backup and restore procedure

Confirm who owns etcd backups for your clusters, how often snapshots run and where they are stored. The Kubernetes documentation uses etcdctl snapshot save for backups and etcdutl for restores, and the n8n database backups do not replace these. Ask your platform team to demonstrate a restore to a test cluster and to show the time it took.

Operating etcd clusters

CNCF conformance of your distribution

Check whether your cluster runs a distribution listed in the CNCF Certified Kubernetes conformance program. Conformance confirms that required Kubernetes APIs are supported, but it does not cover your hardening, Secrets encryption at rest or RBAC. Ask your provider for the conformance listing and the version it covers, and confirm the encryption and access settings separately.

Certified offerings
90+
CNCF conformance

How DeployOpen scopes and delivers an n8n Kubernetes install

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure. For an n8n install on Kubernetes, that means agreeing the cluster, database, Redis, queue mode and secrets design in writing before the Helm values are written, then handing over a running environment your team can operate.

How we scope

  • Confirm the target clusters, their Kubernetes version and who owns the control plane and etcd backups.
  • Decide whether the install runs in regular or queue mode, and how many workers and webhook processors it needs.
  • Agree in writing whether PostgreSQL and Redis are in-cluster or managed, and who runs backups for each.

How we build

  • Configure the Helm chart values for PostgreSQL, Redis, ingress, TLS and persistence in your environment.
  • Store the n8n encryption key in a Kubernetes Secret or external secret store, shared with every worker and webhook processor.
  • Test a restore and a worker failover before any production workflow is moved onto the instance.

How we hand over

  • Deliver the Helm values, manifests and secret references in your repository, with a record of each setting and why it was chosen.
  • Provide a runbook covering upgrades, key rotation, scaling workers and restoring from backup.
  • Walk your platform and security teams through the design so they can review it against their own standards.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer, scoped separately from the install.
  • Plan n8n upgrades and Kubernetes version changes as separate, tested steps with a rollback path.
  • Confirm with n8n which features your plan includes, such as multi-main high availability, before relying on them.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.