diff --git a/values/traefik.yaml b/values/traefik.yaml index ce754a5..1349c52 100644 --- a/values/traefik.yaml +++ b/values/traefik.yaml @@ -10,13 +10,13 @@ globalArguments: - "--global.checknewversion" - "--global.sendanonymoususage" - "--accesslog=true" - - "--entryPoints.web.http.redirections.entryPoint.to=websecure" - - "--entrypoints.web.http.redirections.entrypoint.scheme=https" - - "--providers.kubernetescrd.allowCrossNamespace=true" - - "--entryPoints.web.proxyProtocol.trustedIPs=${TRAEFIK_LOAD_BALANCER_IP}/32,10.124.0.0/16,127.0.0.1/32" - - "--entryPoints.websecure.proxyProtocol.trustedIPs=${TRAEFIK_LOAD_BALANCER_IP}/32,10.124.0.0/16,127.0.0.1/32" - - "--entryPoints.websecure.forwardedHeaders.trustedIPs=${TRAEFIK_LOAD_BALANCER_IP}/32" - - "--entryPoints.mariadb.proxyProtocol.trustedIPs=${TRAEFIK_LOAD_BALANCER_IP},10.124.0.0/16" +# - "--entryPoints.web.http.redirections.entryPoint.to=websecure" +# - "--entrypoints.web.http.redirections.entrypoint.scheme=https" +# - "--providers.kubernetescrd.allowCrossNamespace=true" +# - "--entryPoints.web.proxyProtocol.trustedIPs=${TRAEFIK_LOAD_BALANCER_IP}/32,10.124.0.0/16,127.0.0.1/32" +# - "--entryPoints.websecure.proxyProtocol.trustedIPs=${TRAEFIK_LOAD_BALANCER_IP}/32,10.124.0.0/16,127.0.0.1/32" +# - "--entryPoints.websecure.forwardedHeaders.trustedIPs=${TRAEFIK_LOAD_BALANCER_IP}/32" +# - "--entryPoints.mariadb.proxyProtocol.trustedIPs=${TRAEFIK_LOAD_BALANCER_IP},10.124.0.0/16" additionalArguments: - "--serversTransport.insecureSkipVerify=true" @@ -48,7 +48,18 @@ ports: ingressRoute: dashboard: - enable: false + enable: true + matchRule: PathPrefix(`/dashboard`) || PathPrefix(`/api`) +# matchRule: >- +# Host(`${TRAEFIK_DNS}`) +# entryPoints: +# - "web" +# - "websecure" +# middlewares: +# - name: auth +# - name: admin-ldc-whitelist +# tls: +# secretName: ${TRAEFIK_DNS} providers: kubernetesCRD: @@ -67,4 +78,4 @@ service: spec: loadBalancerIP: "${TRAEFIK_LOAD_BALANCER_IP}" externalTrafficPolicy: Local - externalIPs: [] +