Add authentik middleware to traefik dashboard
This commit is contained in:
parent
1b0ead728d
commit
6b38f1e1da
|
@ -5,10 +5,11 @@ metadata:
|
||||||
namespace: traefik
|
namespace: traefik
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: "letsencrypt-production"
|
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:
|
spec:
|
||||||
entryPoints:
|
entryPoints:
|
||||||
- websecure
|
- websecure
|
||||||
- traefik
|
|
||||||
routes:
|
routes:
|
||||||
- kind: Rule
|
- kind: Rule
|
||||||
match: Host(`k3st.***REMOVED***`) && (PathPrefix(`/dashboard/`) || PathPrefix(`/api/`))
|
match: Host(`k3st.***REMOVED***`) && (PathPrefix(`/dashboard/`) || PathPrefix(`/api/`))
|
||||||
|
@ -19,25 +20,4 @@ spec:
|
||||||
namespace: traefik
|
namespace: traefik
|
||||||
passHostHeader: true
|
passHostHeader: true
|
||||||
port: 9000
|
port: 9000
|
||||||
weight: 10
|
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
|
|
Loading…
Reference in New Issue