Update 3 files
- /longhorn/templates/authentik-service.yaml - /longhorn/templates/ingress.yaml - /longhorn/values.yaml
This commit is contained in:
@@ -1,28 +0,0 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
kubernetes.io/ingress.class: nginx
|
|
||||||
name: ingress-auth
|
|
||||||
spec:
|
|
||||||
rules:
|
|
||||||
- host: longhorn.internal.durp.info
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /outpost.goauthentik.io
|
|
||||||
pathType: Prefix
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: ak-outpost-authentik-embedded-outpost
|
|
||||||
port:
|
|
||||||
number: 9000
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
kind: Service
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: ak-outpost-authentik-embedded-outpost
|
|
||||||
spec:
|
|
||||||
type: ExternalName
|
|
||||||
externalName: ak-outpost-authentik-embedded-outpost.authentik.svc.cluster.local
|
|
||||||
72
longhorn/templates/ingress.yaml
Normal file
72
longhorn/templates/ingress.yaml
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: longhorn-ingress
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
routes:
|
||||||
|
- match: Host(`longhorn.internal.durp.info`) && PathPrefix(`/`)
|
||||||
|
middlewares:
|
||||||
|
- name: whitelist
|
||||||
|
namespace: traefik
|
||||||
|
- name: authentik-proxy-provider
|
||||||
|
namespace: traefik
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: longhorn-frontend
|
||||||
|
port: 80
|
||||||
|
- match: Host(`longhorn.internal.durp.info`) && PathPrefix(`/outpost.goauthentik.io`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: ak-outpost-authentik-embedded-outpost
|
||||||
|
namespace: authentik
|
||||||
|
port: 9000
|
||||||
|
tls:
|
||||||
|
secretName: longhorn-tls
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: Certificate
|
||||||
|
metadata:
|
||||||
|
name: longhorn-tls
|
||||||
|
spec:
|
||||||
|
secretName: longhorn-tls
|
||||||
|
issuerRef:
|
||||||
|
name: letsencrypt-production
|
||||||
|
kind: ClusterIssuer
|
||||||
|
commonName: "longhorn.internal.durp.info"
|
||||||
|
dnsNames:
|
||||||
|
- "longhorn.internal.durp.info"
|
||||||
|
|
||||||
|
#---
|
||||||
|
#
|
||||||
|
#apiVersion: networking.k8s.io/v1
|
||||||
|
#kind: Ingress
|
||||||
|
#metadata:
|
||||||
|
# annotations:
|
||||||
|
# kubernetes.io/ingress.class: nginx
|
||||||
|
# name: ingress-auth
|
||||||
|
#spec:
|
||||||
|
# rules:
|
||||||
|
# - host: longhorn.internal.durp.info
|
||||||
|
# http:
|
||||||
|
# paths:
|
||||||
|
# - path: /outpost.goauthentik.io
|
||||||
|
# pathType: Prefix
|
||||||
|
# backend:
|
||||||
|
# service:
|
||||||
|
# name: ak-outpost-authentik-embedded-outpost
|
||||||
|
# port:
|
||||||
|
# number: 9000
|
||||||
|
#
|
||||||
|
#---
|
||||||
|
#
|
||||||
|
#kind: Service
|
||||||
|
#apiVersion: v1
|
||||||
|
#metadata:
|
||||||
|
# name: ak-outpost-authentik-embedded-outpost
|
||||||
|
#spec:
|
||||||
|
# type: ExternalName
|
||||||
|
# externalName: ak-outpost-authentik-embedded-outpost.authentik.svc.cluster.local
|
||||||
@@ -182,7 +182,7 @@ longhorn:
|
|||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
## Set to true to enable ingress record generation
|
## Set to true to enable ingress record generation
|
||||||
enabled: true
|
enabled: false
|
||||||
|
|
||||||
## Add ingressClassName to the Ingress
|
## Add ingressClassName to the Ingress
|
||||||
## Can replace the kubernetes.io/ingress.class annotation on v1.18+
|
## Can replace the kubernetes.io/ingress.class annotation on v1.18+
|
||||||
|
|||||||
Reference in New Issue
Block a user