114 lines
3.3 KiB
YAML
114 lines
3.3 KiB
YAML
---
|
|
# Source: n8n/charts/n8n/templates/common.yaml
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: n8n-main
|
|
labels:
|
|
app.kubernetes.io/controller: main
|
|
app.kubernetes.io/instance: n8n
|
|
app.kubernetes.io/managed-by: Helm
|
|
app.kubernetes.io/name: n8n
|
|
helm.sh/chart: n8n-4.4.0
|
|
namespace: n8n
|
|
spec:
|
|
revisionHistoryLimit: 3
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/controller: main
|
|
app.kubernetes.io/name: n8n
|
|
app.kubernetes.io/instance: n8n
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/controller: main
|
|
app.kubernetes.io/instance: n8n
|
|
app.kubernetes.io/name: n8n
|
|
spec:
|
|
enableServiceLinks: false
|
|
serviceAccountName: default
|
|
automountServiceAccountToken: true
|
|
hostIPC: false
|
|
hostNetwork: false
|
|
hostPID: false
|
|
dnsPolicy: ClusterFirst
|
|
containers:
|
|
- env:
|
|
- name: GENERIC_TIMEZONE
|
|
value: US/Central
|
|
- name: DB_TYPE
|
|
value: postgresdb
|
|
- name: DB_POSTGRESDB_DATABASE
|
|
valueFrom:
|
|
secretKeyRef:
|
|
key: dbname
|
|
name: n8n-postgresql-17-cluster-app
|
|
- name: DB_POSTGRESDB_HOST
|
|
valueFrom:
|
|
secretKeyRef:
|
|
key: host
|
|
name: n8n-postgresql-17-cluster-app
|
|
- name: DB_POSTGRESDB_PORT
|
|
valueFrom:
|
|
secretKeyRef:
|
|
key: port
|
|
name: n8n-postgresql-17-cluster-app
|
|
- name: DB_POSTGRESDB_USER
|
|
valueFrom:
|
|
secretKeyRef:
|
|
key: user
|
|
name: n8n-postgresql-17-cluster-app
|
|
- name: DB_POSTGRESDB_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
key: password
|
|
name: n8n-postgresql-17-cluster-app
|
|
- name: N8N_METRICS
|
|
value: "true"
|
|
- name: QUEUE_HEALTH_CHECK_ACTIVE
|
|
value: "true"
|
|
- name: EXECUTIONS_MODE
|
|
value: queue
|
|
- name: QUEUE_BULL_REDIS_HOST
|
|
value: redis-replication-n8n-master.n8n
|
|
- name: N8N_ENCRYPTION_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
key: key
|
|
name: n8n-config-secret
|
|
- name: WEBHOOK_URL
|
|
value: https://n8n.alexlebens.net/
|
|
image: ghcr.io/n8n-io/n8n:1.123.1
|
|
imagePullPolicy: IfNotPresent
|
|
livenessProbe:
|
|
failureThreshold: 3
|
|
httpGet:
|
|
path: /healthz
|
|
port: 5678
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 10
|
|
timeoutSeconds: 1
|
|
name: main
|
|
readinessProbe:
|
|
failureThreshold: 3
|
|
httpGet:
|
|
path: /healthz/readiness
|
|
port: 5678
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 10
|
|
timeoutSeconds: 1
|
|
resources:
|
|
requests:
|
|
cpu: 10m
|
|
memory: 128Mi
|
|
volumeMounts:
|
|
- mountPath: /data
|
|
name: data
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: n8n
|