For envoy routing, I've multiple prefix matches for routing to different clusters. For routing to same cluster, I have to repeat the match section. For e.g., this is a section of routes in enovy-config.yaml
- match:
prefix: "/api/v1/config/"
route:
cluster: cluster2
- match:
prefix: "/api/service/risk/"
route:
cluster: cluster2
I cannot match on /api
as most of my services start with that and I am ending up writing multiple match/prefix for routing to same cluster. Is there a way to group the prefixes that go to same cluster without having to repeat the match
section? Is this even possible?