Closed natalian98 closed 2 weeks ago
The middleware is not strictly needed in any routing mode. However, it often makes a lot of sense to have it to simplify reverse proxying. I just think no one has asked for this middleware to be available in the route charm, so no time has been invested in adding it.
Related (for future reference): https://github.com/canonical/grafana-k8s-operator/pull/246
@natalian98 can you try out https://github.com/canonical/traefik-route-k8s-operator/pull/47 ?
This was fixed.
Bug Description
The traefik-route-k8s doesn't generate rules with the
stripPrefix
middleware, while the "ingress-per-app" does so. Is this intentional? Is that middleware not needed withingress-per-unit
?An example rule rendered by
route charm:
ingress-per-app:
To Reproduce
juju deploy traefik-route-k8s root_url=...
juju deploy traefik-k8s
juju deploy prometheus-k8s
juju relate traefik-route-k8s prometheus-k8s
juju relate traefik-route-k8s traefik-k8s
Environment
n/a
Relevant log output
Additional context
No response