route traffic directly to the service endpoint with single ingress object

7/15/2019

I am trying to find a solution with traefik in kubernetes to route the request to the correct endpoint based on the service name from a common URL.

For Example:

URL: http://mydomain-internal.com/dcs-api2/abc:9050/v2/search

will send the request to the service endpoint (abc:9050) internally without knowing the client.

Regex: http://mydomain-internal.com/dcs-api2/(.*) URL_TO_CALL: http://$1 (http://abc:9050/v2/search)

I am trying to create the dynamic route based on the URL, so that I do not need to create new ingress objects & Host URL for each internal service.

-- Shobhit
kubernetes
traefik
traefik-ingress

0 Answers