Hi there,
I’d like to route traffic that comes to one VirtualService (live.mydomain.com) and match uri prefix let’s say /example and directs it to another VirtualService configured with subdomain test.mydomain.com that has set of rules to evaluate and match accordingly. So to maybe clarify it better here are some examples:
* live.mydomain.com/example/api1 > test.mydomain.com/api1 > internal microservice1
* live.mydomain.com/example/api2 > test.mydomain.com/api2 > internal microservice2
* live.mydomain.com/example/ > test.mydomain.com > internal microservice3
And so on. Of course I could just re-paste all rules from one VS to another or create a template (using helm) but still I think best and easiest way would be to just route and rewrite one VS to another.
I’m not sure if this is possible, as far as I know VS itself doesn’t have any internal DNS entry so that I could just route to destination.host.
Any ideas? Maybe I’m seeing some obvious solution but could find anything similar here.
Thanks,
Wojtek