Update addons/traefik.yaml

This commit is contained in:
ties 2024-08-27 15:54:47 +00:00
parent 670982ff90
commit 6fe06e7616

View File

@ -1,13 +1,37 @@
apiVersion: traefik.io/v1alpha1 # apiVersion: traefik.io/v1alpha1
kind: IngressRoute # kind: IngressRoute
metadata: # metadata:
name: chart_name # name: chart_name
namespace: chart_namespace # namespace: chart_namespace
spec: # spec:
routes: # routes:
- kind: Rule # - kind: Rule
match: Host(`chart_host`) # match: Host(`chart_host`)
services: # middlewares:
- name: chart_service # - name: authentik
namespace: chart_namespace # services:
port: chart_port # - name: chart_service
# namespace: chart_namespace
# port: chart_port
# ---
# apiVersion: traefik.io/v1alpha1
# kind: Middleware
# metadata:
# name: authentik
# namespace: chart_namespace
# spec:
# forwardAuth:
# address: https://chart_host/outpost.goauthentik.io/auth/traefik
# authResponseHeaders:
# - X-authentik-username
# - X-authentik-groups
# - X-authentik-email
# - X-authentik-name
# - X-authentik-uid
# - X-authentik-jwt
# - X-authentik-meta-jwks
# - X-authentik-meta-outpost
# - X-authentik-meta-provider
# - X-authentik-meta-app
# - X-authentik-meta-version
# trustForwardHeader: true