HAProxy: expose socket on container host
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Invalid
|
Medium
|
Cédric Jeanneret deactivated |
Bug Description
Dear Stackers,
In order to either get stats, or send commands to HAProxy via its socket, it would be good to expose that socket directly on the host. This can be archived using a simple "bind" mount, for example:
/var/lib/
The "rw" is mandatory as it's a socket, and we have to "socat" stuff in it in order to interact with the daemon.
The use-cases are, at least:
- get stats from HAProxy with some "non-tripleo" tool (custom collectd, for example)
- deactivate some backends for maintenance (Let's Encrypt with webroot validation for example)
- probably other things like that
I can of course provide a patch for that, I'll just need some guidance as to where add it - I see at least two templates with that need:
openstack-
openstack-
And I suppose it will be needed in "step2" part.
Care to confirm/validate?
Cheers,
C.
Changed in tripleo: | |
status: | New → Triaged |
importance: | Undecided → Medium |
milestone: | none → rocky-3 |
hmm, /var/lib/ haproxy/ :/var/lib/ haproxy/ :rw would probably be best. Socket is managed by the daemon.