Change traefik ingressroute host
This commit is contained in:
parent
042a85d769
commit
fd96e62be6
|
@ -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
|
|
|
@ -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:
|
||||||
|
|
|
@ -4,4 +4,3 @@ resources:
|
||||||
- ./namespace.yaml
|
- ./namespace.yaml
|
||||||
- ./helm-repository.yaml
|
- ./helm-repository.yaml
|
||||||
- ./helm-release.yaml
|
- ./helm-release.yaml
|
||||||
#- ./dashboard-ingress.yaml
|
|
||||||
|
|
Loading…
Reference in New Issue