HAProxy community

Dataplane API - simple reload command?


I’m running HAProxy in a Docker Swarm and handling configuration updates by editing a central config file then pushing it out to all nodes in the swarm. The /usr/local/etc/haproxy directory is then mapped to the target location on each node.

However, I’m struggling to come up with a way to reload the configuration when I make a change. The standard Docker method of ‘docker kill -s…’ doesn’t work with a swarm.

I’ve tried using the Dataplane API but there doesn’t seem to be a way to do a simple reload?

I thought I was on to a winner with using the API to upload the full config file (which forces a reload) but then ran into the issue of how to force a reload when SSL certificates are updated. I don’t want to do something clunkly like re-uploading the config file after a cert refresh to force a restart if that can be avoided.

Am I missing something obvious?

Longer term I’d like to start using the dataplane API properly to perform updates but need to take baby steps.