diff --git a/cluster/core/networking/traefik/dashboard-ingress.yaml b/cluster/core/networking/traefik/dashboard-ingress.yaml index ea108e9..c9a84e6 100644 --- a/cluster/core/networking/traefik/dashboard-ingress.yaml +++ b/cluster/core/networking/traefik/dashboard-ingress.yaml @@ -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 \ No newline at end of file + weight: 10 \ No newline at end of file