I'm not sure if this is possible, I have looked around the web but couldn't find anything.

I running kubernetes and using NGINX ingress, I can do layer 7 routing, allowing me to use a single port for incoming requests, then based upon the request, route that request to different services.

My question is: Is there anything like that, that could do the same or a similar thing for TCP & UDP ports?

e.g: So I can route traffic arriving at, lets say, TCP 9071 then route that traffic to different services based on some sort of flag/or traffic content.

It would be good to know if this is not possible as well?

1

There are 1 best solutions below

1
On

You are not going to be able to route based on a URL because that's layer 7 HTTP(S). However, you can do TCP/UDP load balancing which is supported by most open source proxies.

✌️