Change traefik ingressroute host

This commit is contained in:
SeanOMik 2023-04-09 23:47:52 -04:00
parent 042a85d769
commit fd96e62be6
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
3 changed files with 1 additions and 24 deletions

View File

@ -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

View File

@ -86,6 +86,7 @@ spec:
cert-manager.io/cluster-issuer: "letsencrypt-production" cert-manager.io/cluster-issuer: "letsencrypt-production"
traefik.ingress.kubernetes.io/router.middlewares: "traefik-authentik@kubernetescrd" traefik.ingress.kubernetes.io/router.middlewares: "traefik-authentik@kubernetescrd"
entryPoints: [ "websecure" ] entryPoints: [ "websecure" ]
matchRule: Host(`k3st.***REMOVED***`) && (PathPrefix(`/dashboard`) || PathPrefix(`/api`))
# Set Traefik as your default Ingress Controller, according to Kubernetes 1.19+ changes. # Set Traefik as your default Ingress Controller, according to Kubernetes 1.19+ changes.
ingressClass: ingressClass:

View File

@ -4,4 +4,3 @@ resources:
- ./namespace.yaml - ./namespace.yaml
- ./helm-repository.yaml - ./helm-repository.yaml
- ./helm-release.yaml - ./helm-release.yaml
#- ./dashboard-ingress.yaml