mirror of
https://gitlab.durp.info/durfy/homelab/gitops.git
synced 2026-05-07 07:50:29 -05:00
update
This commit is contained in:
parent
e6aafbcf81
commit
1c0c8bab82
3 changed files with 104 additions and 70 deletions
34
dmz/internalproxy/templates/longhorn.yaml
Normal file
34
dmz/internalproxy/templates/longhorn.yaml
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: longhorn-infra-ingress
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: vault-issuer
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
routes:
|
||||||
|
- match: Host(`longhorn.infra.durp.info`) && PathPrefix(`/`)
|
||||||
|
kind: Rule
|
||||||
|
middlewares:
|
||||||
|
- name: authentik-proxy-provider
|
||||||
|
namespace: traefik
|
||||||
|
services:
|
||||||
|
- name: infra-cluster
|
||||||
|
port: 443
|
||||||
|
tls:
|
||||||
|
secretName: longhorn-infra-tls
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: Certificate
|
||||||
|
metadata:
|
||||||
|
name: longhorn-infra-tls
|
||||||
|
spec:
|
||||||
|
secretName: longhorn-infra-tls
|
||||||
|
issuerRef:
|
||||||
|
name: vault-issuer
|
||||||
|
kind: ClusterIssuer
|
||||||
|
commonName: "longhorn.infra.durp.info"
|
||||||
|
dnsNames:
|
||||||
|
- "longhorn.infra.durp.info"
|
||||||
|
|
@ -1,68 +1,68 @@
|
||||||
apiVersion: v1
|
#apiVersion: v1
|
||||||
kind: Service
|
#kind: Service
|
||||||
metadata:
|
#metadata:
|
||||||
name: n8n
|
# name: n8n
|
||||||
spec:
|
#spec:
|
||||||
ports:
|
# ports:
|
||||||
- name: app
|
# - name: app
|
||||||
port: 5678
|
# port: 5678
|
||||||
protocol: TCP
|
# protocol: TCP
|
||||||
targetPort: 5678
|
# targetPort: 5678
|
||||||
clusterIP: None
|
# clusterIP: None
|
||||||
type: ClusterIP
|
# type: ClusterIP
|
||||||
|
#
|
||||||
---
|
#---
|
||||||
apiVersion: v1
|
#apiVersion: v1
|
||||||
kind: Endpoints
|
#kind: Endpoints
|
||||||
metadata:
|
#metadata:
|
||||||
name: n8n
|
# name: n8n
|
||||||
subsets:
|
#subsets:
|
||||||
- addresses:
|
# - addresses:
|
||||||
- ip: 192.168.21.200
|
# - ip: 192.168.21.200
|
||||||
ports:
|
# ports:
|
||||||
- name: app
|
# - name: app
|
||||||
port: 5678
|
# port: 5678
|
||||||
protocol: TCP
|
# protocol: TCP
|
||||||
|
#
|
||||||
---
|
#---
|
||||||
apiVersion: traefik.io/v1alpha1
|
#apiVersion: traefik.io/v1alpha1
|
||||||
kind: IngressRoute
|
#kind: IngressRoute
|
||||||
metadata:
|
#metadata:
|
||||||
name: n8n-ingress
|
# name: n8n-ingress
|
||||||
spec:
|
#spec:
|
||||||
entryPoints:
|
# entryPoints:
|
||||||
- websecure
|
# - websecure
|
||||||
routes:
|
# routes:
|
||||||
- match: Host(`n8n.durp.info`) && PathPrefix(`/`)
|
# - match: Host(`n8n.durp.info`) && PathPrefix(`/`)
|
||||||
kind: Rule
|
# kind: Rule
|
||||||
services:
|
# services:
|
||||||
- name: n8n
|
# - name: n8n
|
||||||
port: 5678
|
# port: 5678
|
||||||
scheme: http
|
# scheme: http
|
||||||
tls:
|
# tls:
|
||||||
secretName: n8n-tls
|
# secretName: n8n-tls
|
||||||
|
#
|
||||||
---
|
#---
|
||||||
apiVersion: cert-manager.io/v1
|
#apiVersion: cert-manager.io/v1
|
||||||
kind: Certificate
|
#kind: Certificate
|
||||||
metadata:
|
#metadata:
|
||||||
name: n8n-tls
|
# name: n8n-tls
|
||||||
spec:
|
#spec:
|
||||||
secretName: n8n-tls
|
# secretName: n8n-tls
|
||||||
issuerRef:
|
# issuerRef:
|
||||||
name: letsencrypt-production
|
# name: letsencrypt-production
|
||||||
kind: ClusterIssuer
|
# kind: ClusterIssuer
|
||||||
commonName: "n8n.durp.info"
|
# commonName: "n8n.durp.info"
|
||||||
dnsNames:
|
# dnsNames:
|
||||||
- "n8n.durp.info"
|
# - "n8n.durp.info"
|
||||||
|
#
|
||||||
---
|
#---
|
||||||
kind: Service
|
#kind: Service
|
||||||
apiVersion: v1
|
#apiVersion: v1
|
||||||
metadata:
|
#metadata:
|
||||||
name: n8n-dns
|
# name: n8n-dns
|
||||||
annotations:
|
# annotations:
|
||||||
dns.alpha.kubernetes.io/hostname: n8n.durp.info
|
# dns.alpha.kubernetes.io/hostname: n8n.durp.info
|
||||||
spec:
|
#spec:
|
||||||
type: ExternalName
|
# type: ExternalName
|
||||||
externalName: durp.info
|
# externalName: durp.info
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@ spec:
|
||||||
- match: Host(`longhorn.infra.durp.info`) && PathPrefix(`/`)
|
- match: Host(`longhorn.infra.durp.info`) && PathPrefix(`/`)
|
||||||
kind: Rule
|
kind: Rule
|
||||||
middlewares:
|
middlewares:
|
||||||
- name: authentik-proxy-provider
|
#- name: authentik-proxy-provider
|
||||||
namespace: traefik
|
# namespace: traefik
|
||||||
services:
|
services:
|
||||||
- name: longhorn-frontend
|
- name: longhorn-frontend
|
||||||
port: 80
|
port: 80
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue