n8n
by janip81
n8n workflow automation
About this chart
n8n
n8n workflow automation
Homepage: https://github.com/janip81/helm-charts/tree/main/charts/n8n
Maintainers
| Name | Url | |
|---|---|---|
| janip81 | [email protected] | https://github.com/janip81 |
Source Code
Overview
Helm-chart for deploying n8n - Workflow Automation Tool
Adding this helm repository
To add the helm repository, run the following commands:
helm repo add janip81 https://janip81.github.io/helm-charts/
helm search repo n8n
values.yaml files for the charts can be found in the charts/[chartname] directories.
Pre-requisites
If you want to use the postgres bootstrap job, you need to create a secret with the name <release-name>-n8n-postgres-bootstrap in the namespace where you want to install n8n. The secret must contain the following
kubectl -n <ns> create secret generic postgres-admin \
--from-literal=username=postgres \
--from-literal=password='<ADMIN_PASS>'
Or you can create db,user and password manually and disable bootstrap job
-- connect as an admin/superuser via psql
-- 1) role
CREATE ROLE n8n LOGIN PASSWORD 'REPLACE_WITH_STRONG_PASSWORD';
-- 2) database owned by that role
CREATE DATABASE n8n OWNER n8n ENCODING 'UTF8';
-- 3) lock down defaults
REVOKE ALL ON DATABASE n8n FROM PUBLIC;
GRANT CONNECT, TEMPORARY ON DATABASE n8n TO n8n;
-- 4) inside the new DB, ensure the schema is owned by n8n
\c n8n
ALTER SCHEMA public OWNER TO n8n;
REVOKE ALL ON SCHEMA public FROM PUBLIC;
GRANT USAGE, CREATE ON SCHEMA public TO n8n;
TL;DR
helm repo add janip81 https://janip81.github.io/helm-charts/
helm install my-app-name janip81/n8n -f YOU-OWN-VALUES.yaml
Helm must be installed to use the charts. Please refer to Helm's documentation to get started.
If you had already added this repo earlier, run helm repo update to retrieve
the latest versions of the packages. You can then run helm search repo <alias> to see the charts.
To install the chart:
helm install my-<chart-name> <alias>/<chart-name>
To uninstall the chart:
helm delete my-<chart-name>
Prerequisites
- Kubernetes
- Helm 3.1.0
- PV provisioner support in the underlying infrastructure (for persistent storage)
- LoadBalancer support or an Ingress controller
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | |
| env.GENERIC_TIMEZONE | string | "Europe/Stockholm" | |
| env.N8N_DIAGNOSTICS_ENABLED | string | "false" | |
| env.N8N_HOST | string | "n8n.example.com" | |
| env.N8N_METRICS | string | "true" | |
| env.N8N_PORT | string | "5678" | |
| env.N8N_PROTOCOL | string | "https" | |
| env.WEBHOOK_URL | string | "" | |
| fullnameOverride | string | "" | |
| gatewayApi.enabled | bool | false | |
| gatewayApi.host | string | "n8n.example.com" | |
| gatewayApi.parentRefs[0].name | string | "cilium-gateway" | |
| gatewayApi.parentRefs[0].namespace | string | "" | |
| gatewayApi.tls.enabled | bool | false | |
| gatewayApi.tls.secretName | string | "" | |
| image.pullPolicy | string | "IfNotPresent" | |
| image.repository | string | "n8nio/n8n" | |
| image.tag | string | "1.86.0" | |
| ingress.annotations | object | {} | |
| ingress.className | string | "" | |
| ingress.enabled | bool | false | |
| ingress.hosts[0].host | string | "n8n.example.com" | |
| ingress.hosts[0].paths[0].path | string | "/" | |
| ingress.hosts[0].paths[0].pathType | string | "Prefix" | |
| ingress.tls | list | [] | |
| livenessProbe.failureThreshold | int | 3 | |
| livenessProbe.initialDelaySeconds | int | 120 | |
| livenessProbe.periodSeconds | int | 20 | |
| metrics.enabled | bool | false | |
| metrics.serviceMonitor.enabled | bool | false | |
| metrics.serviceMonitor.interval | string | "30s" | |
| metrics.serviceMonitor.labels | object | {} | |
| metrics.serviceMonitor.namespace | string | "" | |
| metrics.serviceMonitor.path | string | "/metrics" | |
| metrics.serviceMonitor.portName | string | "http" | |
| metrics.serviceMonitor.scheme | string | "http" | |
| metrics.serviceMonitor.scrapeTimeout | string | "10s" | |
| metrics.serviceMonitor.tlsConfig | object | {} | |
| nameOverride | string | "" | |
| nodeSelector | object | {} | |
| persistence.accessModes[0] | string | "ReadWriteOnce" | |
| persistence.enabled | bool | false | |
| persistence.size | string | "5Gi" | |
| persistence.storageClass | string | "" | |
| podAnnotations | object | {} | |
| podSecurityContext.fsGroup | int | 1000 | |
| postgres.bootstrap.admin.host | string | "" | |
| postgres.bootstrap.admin.port | int | 5432 | |
| postgres.bootstrap.admin.userSecret.keyPassword | string | "password" | |
| postgres.bootstrap.admin.userSecret.keyUser | string | "username" | |
| postgres.bootstrap.admin.userSecret.name | string | "postgres-admin" | |
| postgres.bootstrap.annotations | object | {} | |
| postgres.bootstrap.backoffLimit | int | 2 | |
| postgres.bootstrap.enabled | bool | false | |
| postgres.bootstrap.image | string | "bitnami/postgresql:16" | |
| postgres.database | string | "n8n" | |
| postgres.host | string | "postgres.postgres.svc.cluster.local" | |
| postgres.passwordSecret.key | string | "password" | |
| postgres.passwordSecret.name | string | "n8n-db" | |
| postgres.port | int | 5432 | |
| postgres.schema | string | "public" | |
| postgres.ssl.caSecretName | string | "" | |
| postgres.ssl.enabled | bool | false | |
| postgres.ssl.rejectUnauthorized | string | "true" | |
| postgres.type | string | "postgresdb" | |
| postgres.user | string | "n8n" | |
| readinessProbe.failureThreshold | int | 3 | |
| readinessProbe.initialDelaySeconds | int | 30 | |
| readinessProbe.periodSeconds | int | 10 | |
| replicaCount | int | 1 | |
| resources | object | {} | |
| secrets.create | bool | true | |
| secrets.database.annotations | object | {} | |
| secrets.database.key | string | "password" | |
| secrets.database.name | string | "n8n-db" | |
| secrets.database.value | string | "" | |
| secrets.encryption.annotations | object | {} | |
| secrets.encryption.key | string | "encryptionKey" | |
| secrets.encryption.name | string | "n8n-encryption" | |
| secrets.encryption.value | string | "" | |
| secrets.extra | list | [] | |
| secrets.useStringData | bool | true | |
| securityContext | object | {"allowPrivilegeEscalation":false} | Container security context (n8n container) |
| service.annotations | object | {} | |
| service.port | int | 5678 | |
| service.type | string | "ClusterIP" | |
| tolerations | list | [] |
Autogenerated from chart metadata using helm-docs v1.14.2
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 v0.1.5 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