I would like to route certain paths of my host to a different backend.
Assuming I have 2 backend services:
- backend-one
- backend-two
All of the requests were routed to backend-one initially, like in the example below.
rules:
- host: example.com
http:
paths:
- path: /
backend:
serviceName: backend-one
servicePort: 3000
Now, I have backend-two as the new service, which should be serving content for specific paths, but most importantly the / (root) page as well.
So, my goal would be the following:
- Paths
/,/abc,/xyz,/12345to be served by ====>backend-two(the new service). - Everything else to be served by
backend-onethe old service.
What would be the simplest approach for achieving this?