add namespace to authentik proxy

This commit is contained in:
2024-05-16 13:44:20 -05:00
parent f98268fd25
commit 4d3574ffa8
3 changed files with 9 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v2 apiVersion: v2
name: home-assistant name: home-assistant
version: 0.1.14 version: 0.1.15
description: Chart for Home Assistant description: Chart for Home Assistant
keywords: keywords:
- home-automation - home-automation

View File

@@ -18,7 +18,7 @@ spec:
match: "Host(`{{ .Values.ingressRoute.host }}`)" match: "Host(`{{ .Values.ingressRoute.host }}`)"
middlewares: middlewares:
- name: "authentik-{{ .Release.Name }}" - name: "authentik-{{ .Release.Name }}"
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
priority: 10 priority: 10
services: services:
- kind: Service - kind: Service
@@ -30,7 +30,8 @@ spec:
services: services:
- kind: Service - kind: Service
name: {{ .Values.ingressRoute.authentik.outpost }} name: {{ .Values.ingressRoute.authentik.outpost }}
port: {{ .Values.ingressRoute.authentik.port }} port: {{ .Values.ingressRoute.authentik.port }}
namespace: {{ .Values.ingressRoute.authentik.namespace }}
{{- end }} {{- end }}
--- ---
@@ -54,7 +55,7 @@ spec:
match: "Host(`{{ .Values.codeserver.ingressRoute.host }}`)" match: "Host(`{{ .Values.codeserver.ingressRoute.host }}`)"
middlewares: middlewares:
- name: "authentik-{{ .Release.Name }}" - name: "authentik-{{ .Release.Name }}"
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
priority: 10 priority: 10
services: services:
- kind: Service - kind: Service
@@ -66,5 +67,6 @@ spec:
services: services:
- kind: Service - kind: Service
name: {{ .Values.ingressRoute.authentik.outpost }} name: {{ .Values.ingressRoute.authentik.outpost }}
port: {{ .Values.ingressRoute.authentik.port }} port: {{ .Values.ingressRoute.authentik.port }}
namespace: {{ .Values.ingressRoute.authentik.namespace }}
{{- end }} {{- end }}

View File

@@ -22,8 +22,9 @@ ingressRoute:
enabled: true enabled: true
host: host:
authentik: authentik:
outpost: outpost: ""
port: 9000 port: 9000
namespace: ""
metrics: metrics:
enabled: false enabled: false
serviceMonitor: serviceMonitor: