From 811763ce6abbe92f06d18e1f07de74edc9d62717 Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Wed, 17 Jul 2024 17:41:21 -0400 Subject: [PATCH] special ingress --- k8s/apps/ingresses/templates/authentik.yaml | 30 +++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 k8s/apps/ingresses/templates/authentik.yaml diff --git a/k8s/apps/ingresses/templates/authentik.yaml b/k8s/apps/ingresses/templates/authentik.yaml new file mode 100644 index 0000000..4286cd1 --- /dev/null +++ b/k8s/apps/ingresses/templates/authentik.yaml @@ -0,0 +1,30 @@ +--- +apiVersion: traefik.containo.us/v1alpha1 +kind: IngressRoute +metadata: + name: authentik.core.home.{{ .Values.global.domain }} +spec: + routes: + - kind: Rule + match: "Host(`authentik.core.home.{{ .Values.global.domain }}`)" + middlewares: + - name: forwardauth-authentik + namespace: "{{ .Release.Namespace }}" + priority: 10 + services: + - kind: Service + name: authentik-server + namespace: chart-authentik + port: 80 + - kind: Rule + match: "Host(`authentik.core.home.{{ .Values.global.domain }}`) && PathPrefix(`/outpost.goauthentik.io/`)" + priority: 15 + services: + - kind: Service + name: authentik-server + namespace: chart-authentik + port: 80 + tls: + secretName: tls-authentik.core.home.{{ .Values.global.domain }} + domains: + - main: authentik.core.home.{{ .Values.global.domain }} \ No newline at end of file