Files
homelab-v/charts/application/templates/traefik-forward-auth/middleware.yaml
T
Vegard Hagen 6a4eda1bcf chore(traefik): updating to use new traefik CRDs
Had to manually apply new CRDs with `kubectl apply --server-side --force-conflicts -k https://github.com/traefik/traefik-helm-chart/traefik/crds/`
2023-05-16 13:41:25 +02:00

17 lines
508 B
YAML

{{- if include "auth.create" . }}
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: traefik-forward-auth
namespace: {{ .Values.namespace }}
labels:
{{- include "common.labels" . | nindent 4 }}
annotations:
{{- include "common.annotations" . | nindent 4 }}
spec:
forwardAuth:
address: "http://traefik-forward-auth.{{ .Values.namespace }}.svc.cluster.local:{{ .Values.auth.port }}"
authResponseHeaders:
- X-Forwarded-User
trustForwardHeader: true
{{- end }}