Running n8n on Red Hat OpenShift

Running n8n on OpenShift means adapting the Kubernetes setup to Routes, stricter security context constraints and in-cluster data services, with a test run on OpenShift Local first.

On this page

Running n8n on OpenShift: what changes from plain Kubernetes

A platform team that must run n8n on an existing OpenShift cluster under its own security policy can deploy it, but not by copying a plain Kubernetes setup. n8n runs on OpenShift with four adjustments: external access is exposed through a Route rather than an Ingress, pods must satisfy the cluster's security context constraints (SCCs), the Helm chart's seccompProfile setting has to match what the cluster admits, and PostgreSQL and Redis must be reachable from inside the cluster under the same policies. Each adjustment is small on its own, but together they decide whether the release starts at all. This page is for teams whose clusters enforce OpenShift defaults or a restrictive SCC. If your clusters are standard upstream Kubernetes, the Kubernetes deployment page covers most of the same ground without these changes.

The first decision is where the database and Redis run. Queue mode splits n8n into a main instance that handles triggers and webhooks, and workers that execute workflows, with executions passed through Redis and workflow data held in PostgreSQL. Every worker and webhook processor must share the main instance's encryption key so it can read credentials stored in the database, so the key needs to be injected as a secret into each of those workloads, not only the main pod. Confirm with your platform team whether PostgreSQL and Redis will be in-cluster services managed by you or external services reached through an egress path, because that choice changes the network policy, storage class and backup plan you must design before the first install.

Plan the OpenShift test before the production change. Run the same Helm values on OpenShift Local, a single-node developer cluster, to find SCC rejections, a seccompProfile mismatch and Route hostname problems while the blast radius is small. Confirm with your Red Hat administrators which SCC your namespace receives, since the chart's defaults may assume a more permissive one. The license applies on any cluster: n8n's Sustainable Use License limits use to internal business purposes or non-commercial use, and any file with .ee in its name needs a valid n8n Enterprise License, whether the host is OpenShift, Kubernetes or a single server.

Which OpenShift settings n8n depends on

n8n on OpenShift depends on a small set of cluster settings that differ from a plain Kubernetes install. Each card names one of them, what it affects in the deployment, and what your platform team should confirm in the cluster before installing. None of these should be assumed from defaults.

Routes and TLS termination

OpenShift exposes HTTP traffic through Routes rather than Ingress objects, so the chart's ingress values need an equivalent path to the n8n editor and webhook endpoints. Confirm which router serves your cluster domain, where TLS terminates (edge, re-encrypt or passthrough), and that the external URL n8n builds for webhooks matches the host the Route publishes. A mismatch here shows up as webhook callbacks pointing at the wrong address.

n8n queue mode docs

Security context constraint for the workload

OpenShift assigns each pod a security context constraint (SCC), and the restricted profile it applies by default limits user IDs, volume types and privilege escalation. Confirm which SCC the n8n service account is bound to, whether the image runs as a non-root user that the SCC accepts, and whether any custom SCC grants are needed. Test the grant in a non-production project first, since a pod that fails admission often reports a generic error.

The seccompProfile setting in Helm values

The n8n Helm chart exposes a seccomp profile setting in its pod security values. On OpenShift, the profile the restricted SCC requires may conflict with a value set for generic Kubernetes, so the rendered pod spec must be checked after install. Confirm the effective value with a template render, compare it with the profile your SCC expects, and record the chart version you tested against.

The encryption key Secret

n8n encrypts stored credentials with an encryption key, and every main, worker and webhook process must receive the same key in queue mode. Confirm that the key is created as a Secret in the target namespace, that the chart references it by name, and that the key is backed up outside the cluster. Losing or changing the key makes stored credentials unreadable, so the backup procedure matters as much as the Secret itself.

Queue mode docs

Persistent volumes for n8n data

Self-hosted n8n writes binary data and local files that must survive pod restarts, so the chart's persistence settings need a PersistentVolumeClaim bound to a storage class your cluster provides. Confirm the storage class supports the access mode the chart requests, that the claim is not deleted with the release, and that volume snapshots or backups cover it. Keep the PostgreSQL and Redis data on their own volumes, sized and backed up separately.

Network policies between components

Main instances, workers, Redis and PostgreSQL need to reach each other, while the database and Redis should accept no traffic from other namespaces. Confirm whether your cluster enforces NetworkPolicy objects, which namespaces and labels may reach the n8n pods, and whether outbound egress to external APIs is allowed or restricted. Test the policy set with the n8n webhook and an external API call, because a policy that blocks Redis produces executions that queue without visible errors.

Deployment options on OpenShift by team situation

A single main instance runs the editor, triggers, webhooks and executions in one n8n pod, with PostgreSQL and Redis deployed inside the OpenShift project. This is the smallest footprint to install and the easiest to reason about, because there is one process to scale, one encryption key to manage and one set of logs to read. The trade-off is that the team owns every data service in the cluster, including backups, storage classes, minor upgrades and recovery, and that a busy instance cannot spread webhook or execution load across more pods.

  • Operations: The platform team operates PostgreSQL and Redis as stateful workloads, so persistent volumes, backup jobs and restore tests sit in their queue.
  • Data ownership: All workflow definitions, credentials and execution history stay inside the cluster and its storage, which simplifies residency reviews.
  • Network reach: Only the n8n pod and the database services need cluster-internal connectivity, so the network policy surface is small.
  • Scaling limit: Queue mode is the supported way to add workers, and n8n restricts multi-main high availability to Enterprise self-hosted deployments, so a single main instance is not a highly available design.
  • Key management: The encryption key in the Secret must be backed up with the database, because credentials cannot be decrypted without it.

Before choosing this option, confirm with your platform team which storage class and backup tooling the cluster provides for stateful workloads.

How to run n8n on OpenShift Local before a cluster

This sequence proves the n8n Helm values, Route, secrets and worker behavior on a single-machine OpenShift Local environment before the same configuration is promoted to a shared cluster.

  1. Prepare OpenShift Local and confirm access

    The platform engineer installs OpenShift Local on a workstation or lab machine that meets the vendor's stated hardware requirements, starts the cluster and logs in with cluster-admin rights for the test. Confirm the machine has enough memory and disk for the control plane plus PostgreSQL, Redis and n8n, and check the cluster's default storage class, since the database and Redis volumes depend on it. The step is done when the cluster API responds, the web console opens, and a test pod can be scheduled and reach the internet or your internal package mirror as your policy allows.

  2. Create a project and encryption key secret

    Create a dedicated project for the test and store the n8n encryption key in a Kubernetes Secret inside it, not in the Helm values file or in source control. The same key must later be shared with every worker and webhook processor, so record where it is kept outside the cluster. The check is that the Secret exists in the project, its value is not visible in plain text in the values file, and a reader without project rights cannot list it.

  3. Install PostgreSQL and Redis in the cluster

    Deploy PostgreSQL for workflow and credential data and Redis as the queue broker for queue mode, both inside the test project and with persistent volumes bound to the default storage class. Queue mode passes executions through Redis to workers that read and write PostgreSQL, so both services must be reachable from the n8n pods by service name. The check is that both pods reach Running and Ready, a connection from a temporary pod to each service succeeds, and the PostgreSQL data survives a pod restart.

  4. Install the n8n chart with an OpenShift values file

    Install the n8n Helm chart with a values file written for OpenShift rather than the defaults used on generic Kubernetes. Set the database and Redis connections, reference the encryption key Secret, and adjust the pod security context so it fits the restricted security context constraints that OpenShift applies by default, including the seccompProfile setting your chart version requires. Confirm the exact keys against the chart version you pin, because the values differ between releases. The check is that the main instance, workers and any webhook processor pods start without security context rejection events.

  5. Expose n8n through a Route

    Create an OpenShift Route that points to the n8n service instead of relying on a Kubernetes Ingress, and set the public host name and TLS mode the test will use. The n8n webhook and editor URLs must match the Route host so that generated webhook addresses are correct. The check is that the editor loads over the Route's HTTPS address and that the URL n8n displays for webhooks matches the host you configured.

  6. Verify webhooks and credential decryption

    Create a small test workflow with a webhook trigger and a node that uses a saved credential, then call the webhook from outside the cluster through the Route. The response should show the workflow ran and the credential was decrypted, which proves the encryption key reached the processing pods correctly. The check is a successful webhook response and a completed execution in the editor, with no decryption error in the logs.

  7. Verify worker behavior and document results

    Run several executions at once and confirm that the main instance hands work to the worker pods and that they complete, using the worker logs and the execution list. Restart one worker and confirm queued executions still finish. Record the chart version, values file, Route host and the results in a test report so the cluster deployment can be compared against it. The check is a dated report that lists each verified behavior and any change needed before the cluster install.

How traffic and data move through n8n on OpenShift

Traffic enters through an OpenShift Route and reaches the n8n main pod, which handles triggers and webhooks and hands executions to Redis for worker pods. Workers and the main pod read and write workflow data in in-cluster PostgreSQL, and both need the same encryption key mounted from a Secret to reach stored credentials. Check that every pod sees the same key and that the trust boundary at the Route is the only path from outside networks.

Request, queue and data paths for n8n inside an OpenShift cluster, with the trust boundary at the Route.

Security settings to review on OpenShift

The n8n instance holds an encryption key, database credentials and workflow data that can reach external systems, so the namespace, pod and data settings need to be reviewed together. The cards below cover the controls that most often differ on OpenShift from a plain Kubernetes install, and the checks to run before go-live.

Pod security under restricted SCCs

OpenShift assigns pods a security context constraint, and the default restricted profile typically rejects images that expect to run as root or to write to fixed paths. Confirm which SCC the n8n service account is bound to, and that the chart's security context works without granting the anyuid SCC. If a grant is needed, record which workload needs it and why. Test on OpenShift Local before the cluster change window.

seccompProfile and dropped capabilities

The seccompProfile setting in the Helm chart determines which system calls the container may make, and dropped Linux capabilities reduce what a compromised process can do. Check that the rendered manifest sets a seccomp profile and drops all capabilities, and that n8n still starts and runs a test workflow with those values. Pod Security Standards describe the baseline and restricted levels that these settings map to.

Pod Security Standards

Encryption key and database secrets

The n8n encryption key protects credentials stored in the database, and every worker and webhook processor must hold the same key. Keep the key and the PostgreSQL password in Kubernetes Secrets or an external store, never in values files committed to Git. Kubernetes stores Secrets unencrypted in etcd by default, so confirm with the cluster owner that encryption at rest is enabled for the Secret resource before you load the key.

Secrets good practices

PostgreSQL and Redis exposure

In-cluster PostgreSQL and Redis should accept connections only from the n8n pods, so apply NetworkPolicy rules that allow the database and queue ports from the n8n namespace and nowhere else. Disable any route or service that publishes these ports outside the cluster. Check that Redis requires authentication and that PostgreSQL connections use TLS if your policy requires it. Confirm the storage class and backup method for both services with the cluster team.

Namespace RBAC

Limit who can read Secrets, exec into pods and edit the n8n Route or Deployment in the project. Grant the deploying team edit rights in the namespace only, and keep list and watch on Secrets to the smallest group that needs them. Review service account tokens and any role bindings that give cluster-wide access. Record the owners of each role so access reviews can confirm who holds the encryption key indirectly.

Image provenance

Pin the n8n image to a specific version tag or digest rather than a floating tag, and record which release was tested. Confirm that images come from a registry you control or a mirror your security team has approved, and scan them before admission. n8n uses semantic versioning and ships minor releases roughly weekly, so pinning also makes upgrade planning predictable. Keep the chart version and image version recorded together.

Questions teams ask before running n8n on OpenShift

What drives the cost of running n8n on OpenShift?

The cost follows the amount of platform work around n8n, not the n8n install itself. The main components are cluster access and review time, the security context constraint (SCC) review, the in-cluster PostgreSQL and Redis operation, testing on OpenShift Local and the target cluster, and the Route, certificate and secrets setup. Ask any quote to split these into one-time build work and recurring operations, such as upgrades, backups and patch cycles. Ask which items assume your cluster already has a standard PostgreSQL and Redis pattern, because that choice changes the effort more than almost anything else.

How long does an n8n on OpenShift deployment take?

Duration depends on scope, and no fixed figure applies to every cluster. The largest variables are whether queue mode with workers is in scope, whether PostgreSQL and Redis run in the cluster or come from an existing service, how long your SCC and network policy reviews take, and how many environments (development, test, production) need to match. Ask the quote for a written phase plan with a testing gate before production, and for the assumptions behind each phase, including who approves the SCC changes and the certificate request.

What does the work need from our side?

Plan on providing several things before work starts:

  • Cluster admin rights, or a named administrator who can create namespaces, grant SCCs and install the Helm chart
  • A hostname for the OpenShift Route and a DNS entry that points to it
  • A certificate process that your team owns, since the public or internal certificate authority must issue the certificate for that hostname
  • A named owner for PostgreSQL, including backups, storage and upgrades, if the database lives in your environment

Ask the quote to list each of these as a dependency with an owner.

Who owns PostgreSQL and Redis when they run inside the cluster?

Your organization owns them unless the written scope says otherwise. Running PostgreSQL and Redis in the cluster means someone must handle persistent volumes, backups, restores, version upgrades and failover, and those tasks recur for the life of the deployment. Decide before the build whether you will operate these data services yourselves, use a database service your team already supports, or hand operations to a retainer. Ask the quote which of these responsibilities it covers after go-live.

Can our internal platform team do this without a partner?

A team that already runs Helm charts, OpenShift projects and PostgreSQL can usually handle a basic deployment, provided it has the cluster access and time for the SCC review and testing. The harder parts are reading the security context constraints against the chart's settings, including the seccompProfile setting, validating the Route and TLS path, and setting up backups and upgrades that will still work in a year. Score your team against those specific tasks, then decide which ones to keep in-house and which to scope to a partner.

What security review should happen before production?

Review the SCC the workload runs under, confirm the seccompProfile setting in the Helm values, check how the n8n encryption key is stored as a Kubernetes Secret, and confirm which namespaces and service accounts can read it. Also review who can create Routes, what network policies limit traffic to the database and Redis, and how audit logs for workflow changes are kept. Ask the quote to include a written findings list and a retest after fixes, so the review is not a one-time check.

Do we need a paid n8n license for this deployment?

It depends on which features you run. n8n is licensed under the Sustainable Use License, which allows use for your own internal business purposes, but features in files with .ee in their name need a valid Enterprise License. Multi-main high availability is limited to Enterprise self-hosted deployments, and SSO is included only in the Business and Enterprise plans. Confirm your license position with n8n before the architecture is fixed, because a queue mode design with several main instances depends on it.

Limits to confirm in your environment

Several limits shape an n8n deployment on OpenShift before any manifest is written: the platform versions, the chart and n8n release, the feature tier and the license scope. Each card names one item to confirm in your own environment and the check that settles it.

OpenShift and Kubernetes versions

Confirm which OpenShift release your clusters run and which Kubernetes minor version it is built on. Kubernetes maintains only the three most recent minor releases, so an older base may already be outside support. Check the current list on the Kubernetes releases page before you pick a chart version, and plan any cluster upgrade so the control plane moves one minor version at a time, as the version skew policy requires. Record the versions in your design document, because Route, SCC and seccomp behavior can differ between releases.

Supported minor releases
3
Kubernetes releases

Chart version and n8n release

Pin the n8n-hosting Helm chart version and the n8n image tag together, and confirm that the chart's default values still match the image you intend to run. n8n uses semantic versioning and ships minor releases roughly weekly, so a floating tag can change behavior between reviews. Read the release notes for each version you adopt, check the breaking changes listed there, and test the pinned pair on OpenShift Local before promoting it to a shared cluster.

n8n release notes

Multi-main is Enterprise only

Confirm whether you need several main instances for high availability before you design the OpenShift topology. The multi-main setup is restricted to Enterprise self-hosted deployments and is not available in the Community edition or n8n Cloud. If your plan is Community, design for one main instance with queue mode workers, and document the recovery steps for a failed main pod. Ask n8n for the current entitlements in writing if availability targets depend on this feature.

n8n queue mode docs

Sustainable Use License scope

The Sustainable Use License allows use only for your own internal business purposes, or for non-commercial or personal use. Confirm with your legal team that the planned OpenShift deployment, including any service you run for other business units or customers, fits that scope. Files with .ee in their name or directory need a valid Enterprise License. Verify that the image and chart you deploy contain no .ee components you are not licensed to run.

n8n license text

Chart security context against SCCs

Compare the chart's seccompProfile, runAsUser and fsGroup values with the Security Context Constraints bound to the namespace's service account. OpenShift assigns UIDs from a range and often rejects fixed values, so a chart that works on plain Kubernetes can fail admission. Run oc describe scc and oc adm policy who-can use scc to see what the service account may use, then render the chart with helm template and check each pod spec against the granted constraint before deployment.

Pod Security Standards fit

Check that the pod security labels applied to the namespace match what the n8n pods request, including privilege escalation, dropped capabilities and the seccomp profile type. The Pod Security Standards define baseline and restricted levels, and a namespace set to restricted will reject pods that declare looser settings. Ask your platform team which level they enforce across shared clusters, and confirm the result on OpenShift Local with the same labels before the first production rollout.

Pod Security Standards

Keeping n8n current on OpenShift after go-live

Three version numbers move independently on OpenShift, so each needs its own upgrade path. n8n uses semantic versioning and ships minor releases roughly weekly, so the n8n image tag will change far more often than the Helm chart or the cluster. The chart version, the image tag in your values and the OpenShift release that supplies the Kubernetes version all need to be recorded together, with a named owner for each. Pin the image tag to a specific release rather than a floating tag, and read the release notes before every bump, because n8n's major version upgrades carry breaking changes that a minor bump does not. Confirm with your OpenShift platform team which Kubernetes minor version your cluster runs and when that version leaves support, since the cluster upgrade can force a chart or image change you did not plan for.

Backups of PostgreSQL are the rollback path, and the encryption key is the piece teams most often lose. Schedule regular PostgreSQL backups from the in-cluster database or the managed service you chose, and test a restore into a separate project, not just confirm that the backup job succeeded. The n8n encryption key must be stored outside the database, in your secrets store or a Kubernetes Secret with restricted access, and backed up with the same care as the data it protects. Without that key, credentials stored in the database cannot be decrypted after a restore, even when the rest of the data is intact. Document where the key lives, who can read it and how it is restored, and check that the restored instance can open an existing credential before you call the restore complete.

Test every upgrade on OpenShift Local or a staging project before production. Run the new chart version and image tag against a copy of production data, with the same Routes, security context constraints and seccompProfile setting, so that an upgrade failing on OpenShift is caught before users see it. Check that workflows run, webhooks respond through the Route, workers pick up queued executions and credentials decrypt. Keep the previous chart version and image tag available so a rollback is a values change, not a rebuild. Ask your partner or internal team to state in writing how long a staging cycle takes and who signs off on production, because those two steps are where a planned upgrade usually slips.

How DeployOpen scopes and delivers n8n on OpenShift

DeployOpen plans, builds, tests and documents n8n on OpenShift clusters inside your own infrastructure, starting with a written scope that names the Routes, security context settings, database and Redis choices and the test environment before any work begins. Each step produces evidence your platform, security and compliance teams can review.

How we scope

  • Engagements are fixed-scope, with the OpenShift version, cluster topology and n8n edition agreed in writing first.
  • The written scope lists Route hostnames, TLS handling, security context constraints and the Helm chart values to be changed.
  • Scope records whether in-cluster PostgreSQL and Redis, or existing managed services, will back queue mode workers.

How we build

  • We rehearse the full deployment on OpenShift Local before touching a shared cluster, so issues surface in a sandbox first.
  • Encryption key handling, secret storage and the seccompProfile setting in the Helm chart are configured and reviewed together.
  • Queue mode, webhook routing and worker sizing are tested against the workflows you name in the scope.

How we hand over

  • You receive the deployed configuration, Helm values, Route definitions and security context settings as versioned files.
  • Documentation covers the encryption key, backup and restore steps, and the upgrade path for the n8n release you run.
  • Handover includes a walkthrough with your platform team so they can operate the cluster without us.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after the initial delivery.
  • Retainers can cover n8n version upgrades, OpenShift cluster updates and retesting after configuration changes.
  • Confirm with us during scoping which licensing terms and n8n edition your organization needs for its use case.

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.