68 lines
1.7 KiB
YAML
68 lines
1.7 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: n8n
|
|
namespace: n8n
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: n8n
|
|
strategy:
|
|
type: RollingUpdate
|
|
rollingUpdate:
|
|
maxSurge: 25%
|
|
maxUnavailable: 25%
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: n8n
|
|
spec:
|
|
securityContext:
|
|
fsGroup: 1000
|
|
runAsUser: 1000
|
|
containers:
|
|
- name: n8n
|
|
image: git.chemavx.xyz/chemavx/n8n:01d60680
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- containerPort: 5678
|
|
env:
|
|
- name: N8N_ENCRYPTION_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: n8n-secret
|
|
key: encryption-key
|
|
- name: N8N_HOST
|
|
value: n8n.chemavx.xyz
|
|
- name: N8N_PORT
|
|
value: "5678"
|
|
- name: N8N_PROTOCOL
|
|
value: https
|
|
- name: WEBHOOK_URL
|
|
value: https://n8n.chemavx.xyz/
|
|
- name: N8N_USER_FOLDER
|
|
value: /home/node/.n8n
|
|
- name: NODE_FUNCTION_ALLOW_EXTERNAL
|
|
value: "*"
|
|
- name: GENERIC_TIMEZONE
|
|
value: Europe/Madrid
|
|
- name: DB_TYPE
|
|
value: sqlite
|
|
- name: DB_SQLITE_DATABASE
|
|
value: /home/node/.n8n/database.sqlite
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 256Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 1Gi
|
|
volumeMounts:
|
|
- name: n8n-data
|
|
mountPath: /home/node/.n8n
|
|
volumes:
|
|
- name: n8n-data
|
|
persistentVolumeClaim:
|
|
claimName: n8n-pvc
|