diff --git a/infra-monitoring/templates/karma/release.yaml b/infra-monitoring/templates/karma/release.yaml index 72d3d93..4b5f29d 100644 --- a/infra-monitoring/templates/karma/release.yaml +++ b/infra-monitoring/templates/karma/release.yaml @@ -114,7 +114,7 @@ spec: {{- end }} {{- with $.Values.commons.auth }} {{- if and .enabled (eq .type "authentik") (not $.Values.karma.auth.anonymous.enabled) }} - "traefik.ingress.kubernetes.io/router.middlewares": "{{ .namespace }}-authentik-outpost@kubernetescrd" + "traefik.ingress.kubernetes.io/router.middlewares": "{{ .namespace }}-mycloud-mycloud-authentik-outpost@kubernetescrd" {{- end }} {{- end }} {{- with .annotations }} diff --git a/infra-monitoring/templates/kube-prometheus-stack/release.yaml b/infra-monitoring/templates/kube-prometheus-stack/release.yaml index b5fc7db..d5530ff 100644 --- a/infra-monitoring/templates/kube-prometheus-stack/release.yaml +++ b/infra-monitoring/templates/kube-prometheus-stack/release.yaml @@ -65,6 +65,11 @@ spec: {{- with $.Values.commons.ingress.annotations }} {{- toYaml . | nindent 10 }} {{- end }} + {{- with $.Values.commons.auth }} + {{- if and .enabled (eq .type "authentik") (not $.Values.prometheus.auth.anonymous.enabled) }} + "traefik.ingress.kubernetes.io/router.middlewares": "{{ .namespace }}-mycloud-mycloud-authentik-outpost@kubernetescrd" + {{- end }} + {{- end }} {{- with .annotations }} {{- toYaml . | nindent 10 }} {{- end }} @@ -105,6 +110,11 @@ spec: {{- with $.Values.commons.ingress.annotations }} {{- toYaml . | nindent 10 }} {{- end }} + {{- with $.Values.commons.auth }} + {{- if and .enabled (eq .type "authentik") (not $.Values.alertmanager.auth.anonymous.enabled) }} + "traefik.ingress.kubernetes.io/router.middlewares": "{{ .namespace }}-mycloud-mycloud-authentik-outpost@kubernetescrd" + {{- end }} + {{- end }} {{- with .annotations }} {{- toYaml . | nindent 10 }} {{- end }}