121 lines
3.5 KiB
YAML
121 lines
3.5 KiB
YAML
---
|
|
# Source: n8n/charts/n8n/templates/common.yaml
|
|
apiVersion: apps/v1
|
|
kind: DaemonSet
|
|
metadata:
|
|
name: n8n-webhook
|
|
labels:
|
|
app.kubernetes.io/controller: webhook
|
|
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
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/controller: webhook
|
|
app.kubernetes.io/name: n8n
|
|
app.kubernetes.io/instance: n8n
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
labels:
|
|
app.kubernetes.io/controller: webhook
|
|
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
|
|
nodeSelector:
|
|
kubernetes.io/arch: amd64
|
|
containers:
|
|
- args:
|
|
- webhook
|
|
command:
|
|
- n8n
|
|
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/
|
|
- name: N8N_DIAGNOSTICS_ENABLED
|
|
value: "false"
|
|
- name: N8N_VERSION_NOTIFICATIONS_ENABLED
|
|
value: "false"
|
|
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: /home/node/.n8n
|
|
name: cache
|
|
volumes:
|
|
- emptyDir: {}
|
|
name: cache
|