Update n8n deployment configuration
This commit is contained in:
@@ -3,77 +3,138 @@ kind: Deployment
|
|||||||
metadata:
|
metadata:
|
||||||
name: n8n
|
name: n8n
|
||||||
namespace: n8n
|
namespace: n8n
|
||||||
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
type: Recreate
|
type: Recreate
|
||||||
|
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: n8n
|
app: n8n
|
||||||
|
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: n8n
|
app: n8n
|
||||||
|
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: n8n
|
- name: n8n
|
||||||
image: docker.n8n.io/n8nio/n8n:2.32.7
|
image: docker.n8n.io/n8nio/n8n:2.32.7
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
|
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5678
|
- containerPort: 5678
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
# ------------------------------------------------
|
||||||
|
# n8n URL / reverse proxy
|
||||||
|
# ------------------------------------------------
|
||||||
|
|
||||||
- name: N8N_HOST
|
- name: N8N_HOST
|
||||||
value: n8n.aleshym.co
|
value: n8n.aleshym.co
|
||||||
|
|
||||||
- name: N8N_PORT
|
- name: N8N_PORT
|
||||||
value: "5678"
|
value: "5678"
|
||||||
|
|
||||||
- name: N8N_PROTOCOL
|
- name: N8N_PROTOCOL
|
||||||
value: https
|
value: https
|
||||||
- name: WEBHOOK_URL
|
|
||||||
value: https://n8n.aleshym.co/
|
|
||||||
- name: N8N_EDITOR_BASE_URL
|
- name: N8N_EDITOR_BASE_URL
|
||||||
value: https://n8n.aleshym.co/
|
value: https://n8n.aleshym.co/
|
||||||
|
|
||||||
|
- name: N8N_WEBHOOK_URL
|
||||||
|
value: https://n8n.aleshym.co/
|
||||||
|
|
||||||
|
- name: N8N_PROXY_HOPS
|
||||||
|
value: "1"
|
||||||
|
|
||||||
|
- name: N8N_SECURE_COOKIE
|
||||||
|
value: "true"
|
||||||
|
|
||||||
|
# Required for the Google OAuth callback issue
|
||||||
|
# we're currently troubleshooting.
|
||||||
|
- name: N8N_SKIP_AUTH_ON_OAUTH_CALLBACK
|
||||||
|
value: "true"
|
||||||
|
|
||||||
|
# ------------------------------------------------
|
||||||
|
# Locale / timezone
|
||||||
|
# ------------------------------------------------
|
||||||
|
|
||||||
- name: GENERIC_TIMEZONE
|
- name: GENERIC_TIMEZONE
|
||||||
value: America/Vancouver
|
value: America/Vancouver
|
||||||
|
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: America/Vancouver
|
value: America/Vancouver
|
||||||
|
|
||||||
|
# ------------------------------------------------
|
||||||
|
# PostgreSQL
|
||||||
|
# ------------------------------------------------
|
||||||
|
|
||||||
- name: DB_TYPE
|
- name: DB_TYPE
|
||||||
value: postgresdb
|
value: postgresdb
|
||||||
|
|
||||||
- name: DB_POSTGRESDB_HOST
|
- name: DB_POSTGRESDB_HOST
|
||||||
value: n8n-postgres
|
value: n8n-postgres
|
||||||
|
|
||||||
- name: DB_POSTGRESDB_PORT
|
- name: DB_POSTGRESDB_PORT
|
||||||
value: "5432"
|
value: "5432"
|
||||||
|
|
||||||
- name: DB_POSTGRESDB_DATABASE
|
- name: DB_POSTGRESDB_DATABASE
|
||||||
value: n8n
|
value: n8n
|
||||||
|
|
||||||
- name: DB_POSTGRESDB_USER
|
- name: DB_POSTGRESDB_USER
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: n8n-secrets
|
name: n8n-secrets
|
||||||
key: postgres-user
|
key: postgres-user
|
||||||
|
|
||||||
- name: DB_POSTGRESDB_PASSWORD
|
- name: DB_POSTGRESDB_PASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: n8n-secrets
|
name: n8n-secrets
|
||||||
key: postgres-password
|
key: postgres-password
|
||||||
|
|
||||||
|
# ------------------------------------------------
|
||||||
|
# n8n credential encryption
|
||||||
|
# ------------------------------------------------
|
||||||
|
|
||||||
- name: N8N_ENCRYPTION_KEY
|
- name: N8N_ENCRYPTION_KEY
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: n8n-secrets
|
name: n8n-secrets
|
||||||
key: encryption-key
|
key: encryption-key
|
||||||
- name: N8N_SECURE_COOKIE
|
|
||||||
value: "true"
|
# ------------------------------------------------
|
||||||
- name: N8N_PROXY_HOPS
|
# Community nodes
|
||||||
value: "1"
|
# ------------------------------------------------
|
||||||
- name: N8N_SKIP_AUTH_ON_OAUTH_CALLBACK
|
|
||||||
value: "true"
|
# Required to continue using n8n-nodes-vikunja when
|
||||||
|
# n8n changes the future default to false.
|
||||||
- name: N8N_UNVERIFIED_PACKAGES_ENABLED
|
- name: N8N_UNVERIFIED_PACKAGES_ENABLED
|
||||||
value: "true"
|
value: "true"
|
||||||
|
|
||||||
|
# ------------------------------------------------
|
||||||
|
# Execution history
|
||||||
|
# ------------------------------------------------
|
||||||
|
|
||||||
- name: EXECUTIONS_DATA_PRUNE
|
- name: EXECUTIONS_DATA_PRUNE
|
||||||
value: "true"
|
value: "true"
|
||||||
|
|
||||||
- name: EXECUTIONS_DATA_MAX_AGE
|
- name: EXECUTIONS_DATA_MAX_AGE
|
||||||
value: "336"
|
value: "336"
|
||||||
|
|
||||||
|
# Explicitly preserve the current n8n task timeout
|
||||||
|
# before the future default changes to 60 seconds.
|
||||||
|
- name: N8N_RUNNERS_TASK_TIMEOUT
|
||||||
|
value: "300"
|
||||||
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: n8n-data
|
- name: n8n-data
|
||||||
mountPath: /home/node/.n8n
|
mountPath: /home/node/.n8n
|
||||||
|
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /healthz
|
path: /healthz
|
||||||
@@ -82,6 +143,7 @@ spec:
|
|||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
failureThreshold: 6
|
failureThreshold: 6
|
||||||
|
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /healthz
|
path: /healthz
|
||||||
@@ -90,12 +152,14 @@ spec:
|
|||||||
periodSeconds: 20
|
periodSeconds: 20
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
failureThreshold: 6
|
failureThreshold: 6
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 256Mi
|
memory: 256Mi
|
||||||
limits:
|
limits:
|
||||||
memory: 1Gi
|
memory: 1Gi
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: n8n-data
|
- name: n8n-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
|||||||
Reference in New Issue
Block a user