diff --git a/cluster/core/networking/traefik/dashboard-ingress.yaml b/cluster/core/networking/traefik/dashboard-ingress.yaml deleted file mode 100644 index c9a84e6..0000000 --- a/cluster/core/networking/traefik/dashboard-ingress.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: traefik.containo.us/v1alpha1 -kind: IngressRoute -metadata: - name: traefik-dashboard-ingress - 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 - routes: - - kind: Rule - match: Host(`k3st.***REMOVED***`) && (PathPrefix(`/dashboard/`) || PathPrefix(`/api/`)) - priority: 10 - services: - - kind: Service - name: traefik - namespace: traefik - passHostHeader: true - port: 9000 - weight: 10 \ No newline at end of file diff --git a/cluster/core/networking/traefik/helm-release.yaml b/cluster/core/networking/traefik/helm-release.yaml index 47ee39e..f59a77f 100644 --- a/cluster/core/networking/traefik/helm-release.yaml +++ b/cluster/core/networking/traefik/helm-release.yaml @@ -86,6 +86,7 @@ spec: cert-manager.io/cluster-issuer: "letsencrypt-production" traefik.ingress.kubernetes.io/router.middlewares: "traefik-authentik@kubernetescrd" entryPoints: [ "websecure" ] + matchRule: Host(`k3st.***REMOVED***`) && (PathPrefix(`/dashboard`) || PathPrefix(`/api`)) # Set Traefik as your default Ingress Controller, according to Kubernetes 1.19+ changes. ingressClass: diff --git a/cluster/core/networking/traefik/kustomization.yaml b/cluster/core/networking/traefik/kustomization.yaml index 3672fd6..ba84a55 100644 --- a/cluster/core/networking/traefik/kustomization.yaml +++ b/cluster/core/networking/traefik/kustomization.yaml @@ -4,4 +4,3 @@ resources: - ./namespace.yaml - ./helm-repository.yaml - ./helm-release.yaml -#- ./dashboard-ingress.yaml