mirror of
https://github.com/wahyd4/home-docker.git
synced 2026-08-09 04:15:52 +10:00
Add n8n
This commit is contained in:
@@ -134,3 +134,7 @@ helm upgrade --install redis -n db -f redis-values.yaml bitnami/redis
|
||||
# navigate to the codebase of superset and update TODO to provide db password manually
|
||||
|
||||
helm upgrade --install -n home-apps --values ~/code/home-docker/superset-values.yaml superset helm/superset --set redis.password=$(kubectl get secret --namespace db redis -o jsonpath="{.data.redis-password}" | base64 --decode) --set postgresql.postgresqlPassword=<xxx> --set postgresql.postgresHost=new-postgres-postgresql.db.svc.cluster.local
|
||||
|
||||
# n8n
|
||||
|
||||
k apply -f n8n.yaml -n home-apps
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
apiVersion: networking.k8s.io/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: echo2-ingress
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: "nginx"
|
||||
kubernetes.io/tls-acme: "true"
|
||||
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||||
spec:
|
||||
tls:
|
||||
- hosts:
|
||||
- one.home.toozhao.com
|
||||
secretName: echo-test-tls
|
||||
rules:
|
||||
- host: one.home.toozhao.com
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
serviceName: echo2
|
||||
servicePort: 80
|
||||
path: /
|
||||
-32
@@ -1,32 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: echo2
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 5678
|
||||
selector:
|
||||
app: echo2
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: echo2
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: echo2
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: echo2
|
||||
spec:
|
||||
containers:
|
||||
- name: echo2
|
||||
image: hashicorp/http-echo
|
||||
args:
|
||||
- "-text=echo2"
|
||||
ports:
|
||||
- containerPort: 5678
|
||||
@@ -0,0 +1,91 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: n8n
|
||||
labels:
|
||||
app: n8n
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: n8n
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: n8n
|
||||
name: n8n
|
||||
spec:
|
||||
containers:
|
||||
- name: n8n
|
||||
image: n8nio/n8n
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 5678
|
||||
name: web
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: TZ
|
||||
value: "Australia/Melbourne"
|
||||
- name: N8N_PORT
|
||||
value: "5678"
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: "/home/node/.n8n"
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 200Mi
|
||||
limits:
|
||||
cpu: 200m
|
||||
memory: 500Mi
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: n8n
|
||||
|
||||
---
|
||||
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: n8n
|
||||
labels:
|
||||
name: n8n
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: n8n
|
||||
ports:
|
||||
- name: n8n
|
||||
targetPort: web
|
||||
port: 80
|
||||
protocol: TCP
|
||||
|
||||
---
|
||||
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: n8n-ingress
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: "nginx"
|
||||
kubernetes.io/tls-acme: "true"
|
||||
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||||
nginx.ingress.kubernetes.io/auth-url: "https://id.home.toozhao.com/oauth2/auth"
|
||||
nginx.ingress.kubernetes.io/auth-signin: "https://id.home.toozhao.com/oauth2/start?rd=https%3A%2F%2F$host$request_uri"
|
||||
spec:
|
||||
tls:
|
||||
- hosts:
|
||||
- n8n.home.toozhao.com
|
||||
secretName: n8n-tls
|
||||
rules:
|
||||
- host: n8n.home.toozhao.com
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
service:
|
||||
name: n8n
|
||||
port:
|
||||
number: 80
|
||||
path: /
|
||||
pathType: Prefix
|
||||
Reference in New Issue
Block a user