51 lines
999 B
YAML
51 lines
999 B
YAML
|
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: n8n-deployment
|
||
|
namespace: n8n
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: n8n
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: n8n
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: n8n
|
||
|
image: docker.n8n.io/n8nio/n8n
|
||
|
ports:
|
||
|
- containerPort: 5678
|
||
|
env:
|
||
|
- name: GENERIC_TIMEZONE
|
||
|
value: "Europe/Berlin"
|
||
|
- name: N8N_SECURE_COOKIE
|
||
|
value: "false"
|
||
|
- name: TZ
|
||
|
value: "Europe/Berlin"
|
||
|
volumeMounts:
|
||
|
- name: n8n-data-volume
|
||
|
mountPath: /home/node/.n8n
|
||
|
volumes:
|
||
|
- name: n8n-data-volume
|
||
|
persistentVolumeClaim:
|
||
|
claimName: n8n-pvc
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: n8n-service
|
||
|
namespace: n8n
|
||
|
spec:
|
||
|
type: NodePort
|
||
|
selector:
|
||
|
app: n8n
|
||
|
ports:
|
||
|
- protocol: TCP
|
||
|
port: 5678
|
||
|
targetPort: 5678
|
||
|
nodePort: 30080
|