Add authentik middleware to traefik dashboard

This commit is contained in:
SeanOMik 2023-04-09 00:17:09 -04:00
parent 1b0ead728d
commit 6b38f1e1da
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
1 changed files with 3 additions and 23 deletions

View File

@ -5,10 +5,11 @@ metadata:
namespace: traefik
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-production"
# This might show an error in the dashboard if this middleware is not yet created by authentik
traefik.ingress.kubernetes.io/router.middlewares: traefik-authentik@kubernetescrd
spec:
entryPoints:
- websecure
- traefik
routes:
- kind: Rule
match: Host(`k3st.***REMOVED***`) && (PathPrefix(`/dashboard/`) || PathPrefix(`/api/`))
@ -19,25 +20,4 @@ spec:
namespace: traefik
passHostHeader: true
port: 9000
weight: 10
#apiVersion: networking.k8s.io/v1
#kind: Ingress
#metadata:
# name: traefik-dashboard-ingress
# namespace: traefik
# annotations:
# cert-manager.io/cluster-issuer: "letsencrypt-production"
# traefik.ingress.kubernetes.io/router.entrypoints: websecure
#spec:
# rules:
# - host: "k3st.***REMOVED***"
# http:
# paths:
# - path: /dashboard
# pathType: Prefix
# backend:
# service:
# name: traefik
# port:
# number: 9000
weight: 10