Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 782c787430 | |||
| 52388ec19f | |||
| db22643ecc | |||
| c7ca361bfd | |||
| 52aba07993 | |||
| 3f10de4965 | |||
| b1699a0c95 | |||
| 904ad9a8e8 |
@@ -17,28 +17,32 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: n8n
|
- name: n8n
|
||||||
image: docker.n8n.io/n8nio/n8n:1.74.0
|
image: n8nio/n8n:1.57.0
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5678
|
- containerPort: 5678
|
||||||
envFrom:
|
env:
|
||||||
- secretRef:
|
- name: N8N_HOST
|
||||||
|
value: "n8n.khalisio.com"
|
||||||
|
- name: N8N_PROTOCOL
|
||||||
|
value: "https"
|
||||||
|
- name: WEBHOOK_URL
|
||||||
|
value: "https://n8n.khalisio.com/"
|
||||||
|
- name: N8N_ENCRYPTION_KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
name: n8n-secret
|
name: n8n-secret
|
||||||
|
key: N8N_ENCRYPTION_KEY
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 200m
|
cpu: 200m
|
||||||
memory: 256Mi
|
memory: 256Mi
|
||||||
limits:
|
limits:
|
||||||
cpu: 500m
|
cpu: 1000m
|
||||||
memory: 1Gi
|
memory: 1Gi
|
||||||
livenessProbe:
|
volumeMounts:
|
||||||
httpGet:
|
- name: n8n-data
|
||||||
path: /healthz
|
mountPath: /home/node/.n8n
|
||||||
port: 5678
|
volumes:
|
||||||
initialDelaySeconds: 30
|
- name: n8n-data
|
||||||
periodSeconds: 15
|
persistentVolumeClaim:
|
||||||
readinessProbe:
|
claimName: n8n-data
|
||||||
httpGet:
|
|
||||||
path: /healthz
|
|
||||||
port: 5678
|
|
||||||
initialDelaySeconds: 10
|
|
||||||
periodSeconds: 10
|
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: n8n-secret
|
||||||
|
namespace: apps
|
||||||
|
spec:
|
||||||
|
refreshInterval: 1h
|
||||||
|
secretStoreRef:
|
||||||
|
name: orion-vault
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
target:
|
||||||
|
name: n8n-secret
|
||||||
|
creationPolicy: Owner
|
||||||
|
data:
|
||||||
|
- secretKey: N8N_SECRET_KEY
|
||||||
|
remoteRef:
|
||||||
|
key: apps/n8n
|
||||||
|
property: N8N_SECRET_KEY
|
||||||
|
- secretKey: DB_HOST
|
||||||
|
remoteRef:
|
||||||
|
key: apps/n8n
|
||||||
|
property: DB_HOST
|
||||||
|
- secretKey: DB_PORT
|
||||||
|
remoteRef:
|
||||||
|
key: apps/n8n
|
||||||
|
property: DB_PORT
|
||||||
|
- secretKey: DB_NAME
|
||||||
|
remoteRef:
|
||||||
|
key: apps/n8n
|
||||||
|
property: DB_NAME
|
||||||
|
- secretKey: DB_USER
|
||||||
|
remoteRef:
|
||||||
|
key: apps/n8n
|
||||||
|
property: DB_USER
|
||||||
|
- secretKey: DB_PASSWORD
|
||||||
|
remoteRef:
|
||||||
|
key: apps/n8n
|
||||||
|
property: DB_PASSWORD
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: n8n
|
||||||
|
namespace: apps
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
routes:
|
||||||
|
- match: Host(`n8n.khalisio.com`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: n8n
|
||||||
|
port: 80
|
||||||
|
tls:
|
||||||
|
secretName: n8n-tls
|
||||||
|
certResolver: letsencrypt
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: n8n-data
|
||||||
|
namespace: apps
|
||||||
|
spec:
|
||||||
|
accessModes: [ReadWriteOnce]
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 5Gi
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: n8n
|
||||||
|
namespace: apps
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: n8n
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: 5678
|
||||||
|
type: ClusterIP
|
||||||
Reference in New Issue
Block a user