Skip to content

Commit aecce4f

Browse files
committed
rabbit lb: add placement constraints & preferences
1 parent b13f8b9 commit aecce4f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

services/rabbit/docker-compose.loadbalancer.yml.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ services:
22
loadbalancer:
33
image: haproxy:3.2
44
deploy:
5+
placement:
6+
constraints:
7+
- node.labels.ops == true
8+
preferences:
9+
- spread: node.id
510
update_config:
611
order: start-first
712
parallelism: 1

0 commit comments

Comments
 (0)