traefiktraefik-ingress

How do I weight two PathPrefixs in traefik 2.x


Given I have the following PathPrefix configurations, in this order:

At present, /us/bookingconfirmation is served by application Bar but should be served by Foo.

Moving the Foo application above Bar isn't feasible, ideally, I'm looking for a weight to be applied.

How do I weight /us/bookingconfirmation so that it's served by Foo.


Solution

  • The answer to this is Priority.

    See https://doc.traefik.io/traefik/routing/routers/#priority