Skip to content

Commit 64af10b

Browse files
authored
Merge pull request #45 from replicatedhq/gerard/n8n-terraform
feat: experiment with Helm Chart Development Workflows using Terraform + Dagger + justfile
2 parents 987e228 + f88eeb5 commit 64af10b

40 files changed

+3390
-0
lines changed

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,21 @@ Thumbs.db
3131
*.pyd
3232
__pycache__/
3333

34+
# Terraform
35+
*.tfvars
36+
*.terraform
37+
*.tfplan
38+
*.tfstate
39+
*.tfstate.backup
40+
*.tfvars.json
41+
*.tfvars.json.lock
42+
43+
# Misc
44+
.env
45+
46+
# Cursor
47+
.cursor/
48+
3449
# Mlflow specific
3550
applications/mlflow/tests/.venv/
3651
**/charts/.rendered-templates/

applications/n8n/.terraform.lock.hcl

Lines changed: 60 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
#Prod like set up with CloudNativePG and nginx-ingress
2+
main:
3+
config:
4+
db:
5+
type: postgresdb
6+
postgresdb:
7+
host: db-rw
8+
user: n8n
9+
# password: password is read from cnpg db-app secretKeyRef
10+
pool:
11+
size: 10
12+
ssl:
13+
enabled: true
14+
reject_Unauthorized: true
15+
ca_file: "/home/ssl/certs/postgresql/ca.crt"
16+
# comment out as we are experiment with Terraform template
17+
# secret:
18+
# n8n:
19+
# encryption_key: "thisistheway"
20+
21+
extraEnv:
22+
DB_POSTGRESDB_PASSWORD:
23+
valueFrom:
24+
secretKeyRef:
25+
name: db-app
26+
key: password
27+
# Mount the CNPG CA Cert into N8N container
28+
extraVolumeMounts:
29+
- name: db-ca-cert
30+
mountPath: /home/ssl/certs/postgresql
31+
readOnly: true
32+
extraVolumes:
33+
- name: db-ca-cert
34+
secret:
35+
secretName: db-ca
36+
items:
37+
- key: ca.crt
38+
path: ca.crt
39+
resources:
40+
limits:
41+
memory: 2048Mi
42+
requests:
43+
memory: 512Mi
44+
ingress:
45+
enabled: false
46+
# cnpg DB cluster request
47+
extraManifests:
48+
- apiVersion: postgresql.cnpg.io/v1
49+
kind: Cluster
50+
metadata:
51+
name: db
52+
spec:
53+
instances: 1
54+
bootstrap:
55+
initdb:
56+
database: n8n
57+
owner: n8n
58+
postgresql:
59+
parameters:
60+
shared_buffers: "64MB"
61+
resources:
62+
requests:
63+
memory: "512Mi"
64+
limits:
65+
memory: "512Mi"
66+
storage:
67+
size: 1Gi
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
dependencies:
2+
- name: valkey
3+
repository: oci://registry-1.docker.io/bitnamicharts
4+
version: 2.4.7
5+
- name: replicated
6+
repository: oci://registry.replicated.com/library
7+
version: 1.5.0
8+
digest: sha256:1eb6a06e563152b56016188710d829b5caab37ba6da16470b0779007779b326f
9+
generated: "2025-04-10T09:43:54.914664+10:00"
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
annotations:
2+
artifacthub.io/changes: |
3+
- kind: fixed
4+
description: "fix https://github.com/8gears/n8n-helm-chart/issues/176"
5+
artifacthub.io/prerelease: "false"
6+
apiVersion: v2
7+
appVersion: 1.85.1
8+
dependencies:
9+
- condition: valkey.enabled
10+
name: valkey
11+
repository: oci://registry-1.docker.io/bitnamicharts
12+
version: 2.4.7
13+
- name: replicated
14+
repository: oci://registry.replicated.com/library
15+
version: 1.5.0
16+
description: Helm Chart for deploying n8n on Kubernetes, a fair-code workflow automation
17+
platform with native AI capabilities for technical teams. Easily automate tasks
18+
across different services.
19+
home: https://github.com/8gears/n8n-helm-chart
20+
icon: https://avatars1.githubusercontent.com/u/45487711?s=200&v=4
21+
keywords:
22+
- Workflow Automation
23+
- Workflow
24+
- iPaaS
25+
- integration-framework
26+
- low-code-plattform
27+
- low-code
28+
maintainers:
29+
30+
name: 8gears
31+
url: https://github.com/8gears
32+
33+
name: n8n
34+
url: https://github.com/n8n-io
35+
name: n8n
36+
sources:
37+
- https://github.com/n8n-io/n8n
38+
- https://n8n.io/
39+
type: application
40+
version: 1.0.6

0 commit comments

Comments
 (0)