argocd/apps/n8n/deployment.yaml

62 lines
1.5 KiB
YAML
Raw Normal View History

2026-10-11 21:03:33 +02:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: n8n
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: n8n
template:
metadata:
labels:
app: n8n
spec:
2026-10-11 21:37:30 +02:00
# No <SERVICE>_PORT=tcp://... env vars: apps like Paperless read
# PAPERLESS_PORT as their own setting and crash.
enableServiceLinks: false
2026-10-11 21:03:33 +02:00
securityContext:
# The image runs as node (1000).
fsGroup: 1000
containers:
- name: n8n
image: n8nio/n8n:2.43.3
ports:
- name: http
containerPort: 5678
envFrom:
- secretRef:
name: n8n-secrets
env:
- name: N8N_HOST
value: n8n.un-oeil.fr
- name: N8N_PROTOCOL
value: https
- name: WEBHOOK_URL
value: https://n8n.un-oeil.fr/
- name: N8N_PROXY_HOPS
value: "1"
- name: GENERIC_TIMEZONE
value: Europe/Paris
- name: TZ
value: Europe/Paris
volumeMounts:
- name: data
mountPath: /home/node/.n8n
readinessProbe:
httpGet:
path: /healthz
port: http
resources:
requests:
cpu: 50m
memory: 256Mi
limits:
memory: 1Gi
volumes:
- name: data
persistentVolumeClaim:
claimName: n8n-data