-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdeployment.yml.dist
91 lines (74 loc) · 1.95 KB
/
deployment.yml.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
apiVersion: apps/v1
kind: Deployment
metadata:
name: n8n
namespace: n8n-server
spec:
replicas: 1
selector:
matchLabels:
app: n8n
template:
metadata:
labels:
app: n8n
name: n8n
spec:
nodeSelector:
kubernetes.io/hostname: worker-2
containers:
- name: n8n
image: n8nio/n8n:latest
imagePullPolicy: Always
ports:
- name: n8n
containerPort: 5678
env:
- name: NODE_ENV
value: production
- name: GENERIC_TIMEZONE
value: Europe/Istanbul
- name: WEBHOOK_TUNNEL_URL
value: https://n8n.cluster.local:5678/
- name: DB_TYPE
value: postgresdb
- name: DB_POSTGRESDB_USER
value: postgres
- name: DB_POSTGRESDB_PASSWORD
value: secret
- name: DB_POSTGRESDB_DATABASE
value: "n8n"
- name: DB_POSTGRESDB_HOST
value: postgres.postgres-server
- name: DB_POSTGRESDB_PORT
value: "5432"
- name: N8N_ENCRYPTION_KEY
value: "n8n"
# - name: N8N_BASIC_AUTH_ACTIVE
# value: "true"
# - name: N8N_BASIC_AUTH_PASSWORD
# value: admin
# - name: N8N_BASIC_AUTH_USER
# value: admin
- name: N8N_PROTOCOL
value: https
- name: N8N_HOST
value: n8n.cluster.local
- name: N8N_PORT
value: "5678"
resources:
limits:
cpu: "1.0"
memory: "1024Mi"
requests:
cpu: "0.5"
memory: "512Mi"
volumeMounts:
- name: n8n-storage
mountPath: /root/.n8n
- name: n8n-storage
mountPath: /opt/workflows
volumes:
- name: n8n-storage
persistentVolumeClaim:
claimName: n8n-pvc