n8n

by janip81

Helm chartv0.1.5App 1.86.0Verified publisher

n8n workflow automation

About this chart

n8n

n8n workflow automation

Homepage: https://github.com/janip81/helm-charts/tree/main/charts/n8n

Maintainers

NameEmailUrl
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

KeyTypeDefaultDescription
affinityobject{}
env.GENERIC_TIMEZONEstring"Europe/Stockholm"
env.N8N_DIAGNOSTICS_ENABLEDstring"false"
env.N8N_HOSTstring"n8n.example.com"
env.N8N_METRICSstring"true"
env.N8N_PORTstring"5678"
env.N8N_PROTOCOLstring"https"
env.WEBHOOK_URLstring""
fullnameOverridestring""
gatewayApi.enabledboolfalse
gatewayApi.hoststring"n8n.example.com"
gatewayApi.parentRefs[0].namestring"cilium-gateway"
gatewayApi.parentRefs[0].namespacestring""
gatewayApi.tls.enabledboolfalse
gatewayApi.tls.secretNamestring""
image.pullPolicystring"IfNotPresent"
image.repositorystring"n8nio/n8n"
image.tagstring"1.86.0"
ingress.annotationsobject{}
ingress.classNamestring""
ingress.enabledboolfalse
ingress.hosts[0].hoststring"n8n.example.com"
ingress.hosts[0].paths[0].pathstring"/"
ingress.hosts[0].paths[0].pathTypestring"Prefix"
ingress.tlslist[]
livenessProbe.failureThresholdint3
livenessProbe.initialDelaySecondsint120
livenessProbe.periodSecondsint20
metrics.enabledboolfalse
metrics.serviceMonitor.enabledboolfalse
metrics.serviceMonitor.intervalstring"30s"
metrics.serviceMonitor.labelsobject{}
metrics.serviceMonitor.namespacestring""
metrics.serviceMonitor.pathstring"/metrics"
metrics.serviceMonitor.portNamestring"http"
metrics.serviceMonitor.schemestring"http"
metrics.serviceMonitor.scrapeTimeoutstring"10s"
metrics.serviceMonitor.tlsConfigobject{}
nameOverridestring""
nodeSelectorobject{}
persistence.accessModes[0]string"ReadWriteOnce"
persistence.enabledboolfalse
persistence.sizestring"5Gi"
persistence.storageClassstring""
podAnnotationsobject{}
podSecurityContext.fsGroupint1000
postgres.bootstrap.admin.hoststring""
postgres.bootstrap.admin.portint5432
postgres.bootstrap.admin.userSecret.keyPasswordstring"password"
postgres.bootstrap.admin.userSecret.keyUserstring"username"
postgres.bootstrap.admin.userSecret.namestring"postgres-admin"
postgres.bootstrap.annotationsobject{}
postgres.bootstrap.backoffLimitint2
postgres.bootstrap.enabledboolfalse
postgres.bootstrap.imagestring"bitnami/postgresql:16"
postgres.databasestring"n8n"
postgres.hoststring"postgres.postgres.svc.cluster.local"
postgres.passwordSecret.keystring"password"
postgres.passwordSecret.namestring"n8n-db"
postgres.portint5432
postgres.schemastring"public"
postgres.ssl.caSecretNamestring""
postgres.ssl.enabledboolfalse
postgres.ssl.rejectUnauthorizedstring"true"
postgres.typestring"postgresdb"
postgres.userstring"n8n"
readinessProbe.failureThresholdint3
readinessProbe.initialDelaySecondsint30
readinessProbe.periodSecondsint10
replicaCountint1
resourcesobject{}
secrets.createbooltrue
secrets.database.annotationsobject{}
secrets.database.keystring"password"
secrets.database.namestring"n8n-db"
secrets.database.valuestring""
secrets.encryption.annotationsobject{}
secrets.encryption.keystring"encryptionKey"
secrets.encryption.namestring"n8n-encryption"
secrets.encryption.valuestring""
secrets.extralist[]
secrets.useStringDatabooltrue
securityContextobject{"allowPrivilegeEscalation":false}Container security context (n8n container)
service.annotationsobject{}
service.portint5678
service.typestring"ClusterIP"
tolerationslist[]

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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartn8n is pinned at v0.1.5 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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