Hi all,
I am trying to set up the frontend by binding it with a certain port and then forwarding it to the backend. The problem is the backend is on a different port and the request comes with another port and I get error 503.
For example:
//// This works when using port 443
frontend admin_kubernetes
mode http
bind 10.2.6.15:443 ssl crt /etc/haproxy/certs/cert.pem alpn h2,http/1.1
acl admin_url hdr(host) -i admin.domain.com
use_backend kubernetes_test if admin_url
backend kubernetes_test
balance roundrobin
option httpchk GET /healthz
default-server inter 15s
cookie SERVERID insert indirect nocache
timeout connect 100s
timeout server 120s
server kubernetestest1 10.2.6.75:443 ssl check cookie s1 sni req.hdr(Host) verify none
//// This doesn’t work when port is 3000
frontend admin_kubernetes
mode http
bind 10.2.6.15:3000 ssl crt /etc/haproxy/certs/cert.pem alpn h2,http/1.1
acl admin_url hdr(host) -i admin.domain.com
use_backend kubernetes_test if admin_url
backend kubernetes_test
balance roundrobin
option httpchk GET /healthz
default-server inter 15s
cookie SERVERID insert indirect nocache
timeout connect 100s
timeout server 120s
server kubernetestest1 10.2.6.75:443 ssl check cookie s1 sni req.hdr(Host) verify none
Does anyone have some suggestions?
Thanks,
I