diff --git a/charts/home-assistant/Chart.yaml b/charts/home-assistant/Chart.yaml index b71b077..5609abd 100644 --- a/charts/home-assistant/Chart.yaml +++ b/charts/home-assistant/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: home-assistant -version: 0.1.0 +version: 0.1.1 description: Chart for Home Assistant keywords: - home-automation diff --git a/charts/home-assistant/templates/ingress-route.yaml b/charts/home-assistant/templates/ingress-route.yaml index f0a3897..29b7fb9 100644 --- a/charts/home-assistant/templates/ingress-route.yaml +++ b/charts/home-assistant/templates/ingress-route.yaml @@ -16,12 +16,21 @@ spec: routes: - kind: Rule match: "Host(`{{ .Values.ingressRoute.host }}`)" + middlewares: + - name: "authentik-{{ .Release.Name }}" + namespace: {{ .Release.Namespace }} priority: 10 services: - kind: Service name: {{ .Release.Name }} port: {{ .Values.service.http.port }} - + - kind: Rule + match: "Host(`{{ .Values.ingressRoute.host }}`) && PathPrefix(`/outpost.goauthentik.io/`)" + priority: 15 + services: + - kind: Service + name: {{ .Values.ingressRoute.authentik.outpost }} + port: {{ .Values.ingressRoute.authentik.port }} {{- end }} ---