Single frontend port to multiple Backend port map

Hi Team,

I’m trying to route a traffic from one frontend port to multiple backend port. How do I configure the port range in the backend cfg ?

Hi,

the question is: how do you take decision to route traffic to backend port A or backend port B?

I have a current settings like this however it’s not working though. It works when I bypass the proxy. Instead of 3 different dns, I have setup with just 1 dns however 3 context based routing. mywebsite.demo/app1 and mywebsite.demo/app2

frontend foo
mode http
bind *:80
use_backend app1 if { req.hdr(host) -i mywebsite.demo/app1 }
use_backend app2 if { req.hdr(host) -i mywebsite.demo/app2 }

backend app1
mode http
server k8master 192.168.39.2:31811
server kubenode01 192.168.39.3:31811
server kubenode02 192.168.39.4:31811

backend app2
mode http
server k8master 192.168.39.2:30972
server kubenode01 192.168.39.3:30972
server kubenode02 192.168.39.4:30972

Hi,

I figured it. I need to use some acl to compare the path. Once I did that, I’m able to route the traffic as required. Thanks