From fd96e62be6e51fd49a52164c72007a44646141ad Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Sun, 9 Apr 2023 23:47:52 -0400 Subject: [PATCH] Change traefik ingressroute host --- .../networking/traefik/dashboard-ingress.yaml | 23 ------------------- .../core/networking/traefik/helm-release.yaml | 1 + .../networking/traefik/kustomization.yaml | 1 - 3 files changed, 1 insertion(+), 24 deletions(-) delete mode 100644 cluster/core/networking/traefik/dashboard-ingress.yaml 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