n8n
Helm Chart for deploying n8n on Kubernetes and Red Hat OpenShift, a fair-code workflow automation platform with native AI capabilities for technical teams. Easily automate tasks across different services. Includes optional Mailpit for email testing and OpenShift Developer Sandbox support.
About this chart
n8n Helm Chart for Kubernetes & OpenShift
Documentation & Screenshots: maximilianopizarro.github.io/n8n-helm-chart
n8n is an extendable workflow automation tool. This Helm chart deploys n8n on Kubernetes and Red Hat OpenShift with native MCP Server integration, Developer Sandbox support, Mailpit email testing, and workflow auto-import.
Key Features (v1.18.0)
- n8n 2.36.7 — Latest stable; charts 1.17.1 / 1.16.0 remain available for existing catalog RC installs
- OpenShift EACCES fix — Injects
HOME,N8N_USER_FOLDER, andXDG_CACHE_HOMEfrom the writablemain.persistence.mountPath(no parent-dir strip) so random UIDs can write cache under the volume - OpenShift MCP Server Integration — 7 workflows using MCP Streamable HTTP protocol with session handling
- AI-Powered Analysis — Each workflow includes an AI formatting step via LiteLLM/Granite that analyzes, summarizes, and explains the raw MCP output with health assessments and recommendations
- Workflow Auto-Import — initContainers download and import workflows before n8n starts
- Mailpit — Optional SMTP test server with web UI for email report preview
- Developer Sandbox — Full compatibility with restricted SCCs and random UIDs
- MCP Tools:
monitorDeployments,pods_list_in_namespace,analyzePodDisruptions,events_list,resources_list,getPerformanceMetrics,helm_list
Requirements
Before you start, make sure you have the following tools ready:
- Helm >= 3.8
- external Postgres DB or embedded SQLite (SQLite is bundled with n8n)
- Helmfile (Optional)
Overview
The values.yaml file is divided into a multiple sections like global, n8n and Kubernetes.
Use this structure to orientate yourself.
- Global and chart wide values, like the image repository, image tag, etc.
- Ingress, (default is nginx, but you can change it to your own ingress controller)
- Main n8n app configuration + Kubernetes specific settings
- Worker related settings + Kubernetes specific settings
- Webhook related settings + Kubernetes specific settings
- Raw Resources to pass through your own manifests like GatewayAPI, ServiceMonitor etc.
- Redis related settings + Kubernetes specific settings
Configurating N8n via Values and Environment Variables
These n8n configuration should be added to main.config: or main.secret: in the values.yaml file.
See the example section and other example in the /examples directory of this repo.
[!IMPORTANT] The YAML nodes
configandsecretin the values.yaml are transformed 1:1 into K8s ENV variables.
main:
config:
n8n:
encryption_key: "my_secret" # ==> turns into ENV: N8N_ENCRYPTION_KEY=my_secret
db:
type: postgresdb # ==> turns into ENV: DB_TYPE=postgresdb
postgresdb:
host: 192.168.0.52 # ==> turns into ENV: DB_POSTGRESDB_HOST=192.168.0.52
node:
function_allow_builtin: "*" # ==> turns into ENV: NODE_FUNCTION_ALLOW_BUILTIN="*"
Consult the n8n Environment Variables Documentation
You decide what should go into secret and what should be a config.
There is no restriction, mix and match as you like.
Installation
Install chart
helm repo add n8n-openshift https://maximilianopizarro.github.io/n8n-helm-chart/
helm install n8n n8n-openshift/n8n --version 1.18.0
OpenShift Developer Sandbox
# Create PVC (RWO 2Gi) named "n8n", then:
helm install n8n n8n-openshift/n8n --version 1.18.0 \
-f https://raw.githubusercontent.com/maximilianoPizarro/n8n-helm-chart/main/values-sandbox.yaml
Keep chart 1.16.0 (n8n 1.123.28) for an existing catalog RC:
helm install n8n n8n-openshift/n8n --version 1.16.0
OpenShift MCP Server
The included workflows require the OpenShift MCP Server deployed in your cluster:
helm repo add openshift-mcp https://maximilianoPizarro.github.io/openshift-mcp-server
helm install openshift-mcp-server openshift-mcp/openshift-mcp-server
| Component | Port | Tools |
|---|---|---|
| Quarkus MCP Server | 8080 | monitorDeployments, analyzePodDisruptions, getPerformanceMetrics, deployDatabase |
| K8s MCP Server | 8085 | pods_list_in_namespace, events_list, resources_list, helm_list |
| MCP Inspector | Web UI | Interactive MCP tool testing |
| LiteLLM Proxy | 4000 | OpenAI-compatible proxy for Granite/Qwen models |
Full documentation: maximilianopizarro.github.io/openshift-mcp-server
MCP Workflow Pipeline
Each of the 7 included workflows follows a 5-node pipeline with MCP Streamable HTTP protocol, AI-powered analysis, and email reporting:
Manual Trigger → Set Parameters → MCP Tool Call → AI Format & Explain → Build Report & Send Email
| # | Workflow | MCP Tool | MCP Server | AI Model | Protocol |
|---|---|---|---|---|---|
| 1 | Deployment Monitor | monitorDeployments | Quarkus MCP (8080) | Granite (LiteLLM) | Streamable HTTP |
| 2 | Pod Status | pods_list_in_namespace | K8s MCP (8085) | Granite (LiteLLM) | Streamable HTTP + SSE |
| 3 | Pod Disruption Analyzer | analyzePodDisruptions | Quarkus MCP (8080) | Granite (LiteLLM) | Streamable HTTP |
| 4 | Event Monitor | events_list | K8s MCP (8085) | Granite (LiteLLM) | Streamable HTTP + SSE |
| 5 | Route Monitor | resources_list (Route) | K8s MCP (8085) | Granite (LiteLLM) | Streamable HTTP + SSE |
| 6 | Performance Metrics | getPerformanceMetrics | Quarkus MCP (8080) | Granite (LiteLLM) | Streamable HTTP |
| 7 | Helm Releases | helm_list | K8s MCP (8085) | Granite (LiteLLM) | Streamable HTTP + SSE |
The AI Format & Explain node calls LiteLLM/Granite to analyze the raw MCP output and produce an HTML summary with health assessments. The Build Report & Send Email node generates a branded HTML email containing both the AI analysis and the raw MCP data, then sends it via Mailpit.
Workflow Auto-Import
Workflows can be automatically downloaded and imported into n8n at startup using initContainers:
workflows:
autoImport:
enabled: true
urls:
- https://raw.githubusercontent.com/maximilianoPizarro/n8n-helm-chart/main/workflows/workflow-pod-monitor-mcp-agent.json
- https://raw.githubusercontent.com/maximilianoPizarro/n8n-helm-chart/main/workflows/workflow-pod-monitor-mcp-granite.json
- https://raw.githubusercontent.com/maximilianoPizarro/n8n-helm-chart/main/workflows/workflow-deployment-rollout-status.json
- https://raw.githubusercontent.com/maximilianoPizarro/n8n-helm-chart/main/workflows/workflow-resource-quota-monitor.json
- https://raw.githubusercontent.com/maximilianoPizarro/n8n-helm-chart/main/workflows/workflow-security-audit.json
- https://raw.githubusercontent.com/maximilianoPizarro/n8n-helm-chart/main/workflows/workflow-route-tls-expiry.json
- https://raw.githubusercontent.com/maximilianoPizarro/n8n-helm-chart/main/workflows/workflow-event-anomaly-detector.json
The download tool is selected automatically based on image.variant: wget for the official Alpine image, curl for the Red Hat UBI image.
Container Image (Podman / Docker)
A Red Hat UBI 9-based container image is available at quay.io/maximilianopizarro/n8n. It uses a 3-stage build: extracts n8n from Docker Hub, rebuilds sqlite3 for Node.js 22 + glibc in ubi9/nodejs-22, and packages on ubi9/nodejs-22-minimal.
Image Variant Selection
The chart supports two image variants via image.variant in values.yaml:
| Variant | Image | Download Tool | Use Case |
|---|---|---|---|
official (default) | n8nio/n8n | wget | Standard Alpine-based image from Docker Hub |
ubi | quay.io/maximilianopizarro/n8n | curl | Red Hat UBI 9 for OpenShift / enterprise environments |
image:
repository: quay.io/maximilianopizarro/n8n
tag: "2.36.7"
variant: "ubi"
OpenShift user folder (EACCES fix)
On OpenShift Developer Sandbox, pods often run with a random UID and HOME=/. Without an explicit writable user folder, n8n tries mkdir '/.n8n' (or /home/node/.cache) and crashes with EACCES.
Chart 1.18.0+ injects HOME, N8N_USER_FOLDER, and XDG_CACHE_HOME from the writable main.persistence.mountPath itself (never the unmounted parent):
mountPath | HOME / N8N_USER_FOLDER | XDG_CACHE_HOME |
|---|---|---|
/data | /data | /data/.cache |
/home/node/.n8n (default) | /home/node/.n8n | /home/node/.n8n/.cache |
Do not set HOME / N8N_USER_FOLDER again in extraEnvVars (duplicate keys). For Sandbox use values-sandbox.yaml:
main:
persistence:
existingClaim: n8n
mountPath: "/data"
config:
n8n:
user_folder: "/data"
Run from Quay.io
podman run -d --name n8n \
-p 5678:5678 \
-v n8n-data:/data \
quay.io/maximilianopizarro/n8n:2.36.7
Open http://localhost:5678 to access the n8n editor.
Build locally
podman build -t quay.io/maximilianopizarro/n8n:2.36.7 \
-f container/Containerfile \
--build-arg N8N_VERSION=2.36.7 .
Run with Mailpit for email testing
# Start Mailpit (SMTP on 1025, Web UI on 8025)
podman run -d --name mailpit \
-p 8025:8025 -p 1025:1025 \
docker.io/axllent/mailpit:latest
# Start n8n with MCP Code node support
podman run -d --name n8n \
-p 5678:5678 \
-v n8n-data:/data \
-e NODE_FUNCTION_ALLOW_BUILTIN="*" \
-e NODE_FUNCTION_ALLOW_EXTERNAL="*" \
quay.io/maximilianopizarro/n8n:2.36.7
Access Mailpit at http://localhost:8025.
Useful commands
podman exec n8n n8n --version # Check version
podman logs -f n8n # View logs
curl http://localhost:5678/healthz # Health check
podman stop n8n && podman rm n8n # Stop and remove
| Build Stage | Base Image | Purpose |
|---|---|---|
| 1. Source | n8nio/n8n:2.36.7 | Extract n8n node_modules |
| 2. Builder | ubi9/nodejs-22 | Rebuild sqlite3 native module for Node.js 22 + glibc |
| 3. Runtime | ubi9/nodejs-22-minimal | Minimal production image |
Examples
A typical example of a config in combination with a secret.
You can find various other examples in the examples directory of this repository.
#small deployment with nodeport for local testing or small deployments
main:
config:
n8n:
hide_usage_page: true
secret:
n8n:
encryption_key: "<your-secure-encryption-key>"
resources:
limits:
memory: 2048Mi
requests:
memory: 512Mi
service:
type: NodePort
port: 5678
Full Example
Tip: n8n now listens on IPv6 addresses by default (
N8N_LISTEN_ADDRESS="::") due to the gradual deprecation of IPv4. If your Kubernetes cluster only supports IPv4, be sure to setN8N_LISTEN_ADDRESS=0.0.0.0. This will help avoid potential issues with readiness and liveness probes failing.
log:
level: warn
db:
type: postgresdb
externalPostgresql:
host: "postgresql-instance1.ab012cdefghi.eu-central-1.rds.amazonaws.com"
username: "n8nuser"
password: "Pa33w0rd!"
database: "n8n"
main:
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 512m
memory: 512Mi
worker:
mode: queue
autoscaling:
enabled: true
waitMainNodeReady:
enabled: true
resources:
requests:
cpu: 1000m
memory: 250Mi
limits:
cpu: 2000m
memory: 2Gi
externalRedis:
host: "redis-instance1.ab012cdefghi.eu-central-1.rds.amazonaws.com"
username: "default"
password: "Pa33w0rd!"
ingress:
enabled: true
hosts:
- host: n8n.mydomain.com
paths:
- path: /
pathType: Prefix
webhook:
mode: queue
url: "https://webhook.mydomain.com"
autoscaling:
enabled: true
waitMainNodeReady:
enabled: true
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 512m
memory: 512Mi
Basic Deployment with Ingress
ingress:
enabled: true
hosts:
- host: n8n.mydomain.com
paths:
- path: /
pathType: ImplementationSpecific
Deployment with Bitnami's PostgreSQL
db:
type: postgresdb
postgresql:
enabled: true
primary:
persistence:
existingClaim: "my-n8n-claim"
Deployment with External PostgreSQL
db:
type: postgresdb
externalPostgresql:
host: "postgresql-instance1.ab012cdefghi.eu-central-1.rds.amazonaws.com"
username: "n8nuser"
password: "Pa33w0rd!"
database: "n8n"
Deployment with External PostgreSQL and Exist Secret on
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.18.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