Hey,
I have a product that where each customers instance is deployed in different kubernetes clusters. Each cutomer has a partner api where external parties can integrate. So each integration point is on different domains. Is it possible to use traefik to in kubenetes to route to external domains.
Example:
Customer A and B has its partner api like this:
https://A.example.com/partners/api/v1/{customerId}/Some-Endpoint
https://B.example.com/partners/api/v1/{customerId}/Some-Endpoint
Goal:
have a route that is https://partners.example.com/api/v1/{customerId}/Some-Endpoint
if {customerId} is equal to A it should proxy the request to https://A.example.com/partners/api/v1/{customerId}/Some-Endpoint and vice versa for B.
Is this possible, the closes i come is to add a service with type ExternalName in k8s, but this will redirect the request to the correct domain and not just reverse proxy the request.