Hi,
I am planning on using consul-template to update the haproxy configuration from the consul-template docker container.
Actually, these two ‘consul-template’ and ‘haproxy’ will run as a sidecar container to the main business service. Also, I have consul-agent running as the sidecar container.
for ‘consul-template’ container, here is the command I am using:
consul-template -consul-addr=xx.xx.xx.xx:8500 -template "/etc/consul-template/haproxy.cfg.ctmpl:/etc/consul-template/haproxy.cfg
for ‘haproxy’ container, here is the command I am using:
haproxy -f /etc/consul-template/data/haproxy.cfg
So, I am a bit confused here with the haproxy reload thing. Since the consul-template will be updating the haproxy.cfg file continuously, Do we need to reload the haproxy.cfg file everytime the consul-template updates something?