iits-consulting / charts

Common helm charts we use
GNU General Public License v3.0
15 stars 7 forks source link

Traefik - Dashboard route returns 404 #106

Closed krankkkk closed 3 months ago

krankkkk commented 6 months ago

The traefik default dashboard route seems to be flunky wether it works or not.

It either works consistently or not at all.

On one project we could deploy it and the Dashboard was available as expected.

On another project the dashboard was only available when we override the traefik.ingressRoute.dashboard.matchRule to include an Host matcher

So current workaround from terraform is this:

ingressRoute = {
  dashboard = {
   matchRule = "Host(`admin.${var.domain_name}`) && (PathPrefix(`/dashboard`) || PathPrefix(`/api`))"
  }
}
krankkkk commented 3 months ago

Closing as this the root cause is traefik route matching, domain is necessary. As that field is not templated in the base chart we cannot add it dynamically, so the current workaround is to apply the suggested terraform fix.