Add authentik middleware to traefik dashboard
This commit is contained in:
parent
1b0ead728d
commit
6b38f1e1da
|
@ -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
|
Loading…
Reference in New Issue