dataplaneapi icon indicating copy to clipboard operation
dataplaneapi copied to clipboard

'program' directive being depreciated in HAProxy - consider releasing a standalone dataplaneapi Docker image

Open GilchristT opened this issue 4 months ago • 2 comments

With the 'program' directive being depreciated as of HAProxy 3.1 and scheduled to be removed in version 3.3 ( blog post ) the alternative for containerised deployments seems to be to run a separate sidecar (unless I'm mistaken, happy to be corrected).

While I can bake my own dataplaneapi container, it would be useful to have one in the repo alongside the existing images. Could this be considered?

GilchristT avatar Aug 08 '25 13:08 GilchristT

I think HAProxy Enterprise official Docker image uses a thing called s6-overlay to run both HAProxy Enterprise and HAProxy Data Plane API as services in the same container (source: https://www.haproxy.com/documentation/haproxy-enterprise/getting-started/installation/docker/#reload-or-stop-the-services). Took me a few hours to get familiar with s6-overlay and re-engineer my HAProxy container from scratch (had some issues with environmental variables and the old worker process not exiting on SIGUSR2, but eventually solved them both). If You have no issues running more than one process in the container You could try that.

duckasylum avatar Aug 12 '25 21:08 duckasylum

We plan to release S6-overlay enabled HAProxy CE + Dataplaneapi image really really soon.

dkorunic avatar Aug 12 '25 22:08 dkorunic