Changing Haproxy configuration in loadbalancer

I am trying to change haproxy configuration in load balancer using haproxy custom config option. And also i edit the haproxy config file using container shell after restarting load balancer, container port get resetted to default port.
How to configure this?

The config is a combination of what’s generated based on the sources and targets for the balancer and the custom config field. Changing listening ports in the custom config will not have any useful effect because the new ports are not going to be directed to the container in the first place. And the config is generated any time something changes so you cannot just edit the file on disk in the container and expect it to persist.

1 Like