1
0
Fork 0

Refactor Swarm E2E tests: optimize timeouts, enhance stack deployment/wait logic, consolidate replicas, and update HAProxy config refresh cycle

This commit is contained in:
Joao Gilberto Magalhaes 2026-02-18 15:55:00 -05:00
parent d9c7ff89cc
commit 5a9f14e980
3 changed files with 26 additions and 22 deletions

View file

@ -63,6 +63,7 @@ services:
replicas: 1
environment:
EASYHAPROXY_DISCOVER: swarm
EASYHAPROXY_REFRESH_CONF: "2"
EASYHAPROXY_SSL_MODE: "loose"
EASYHAPROXY_CERTBOT_EMAIL: changeme@example.org
HAPROXY_CUSTOMERRORS: "true"

View file

@ -109,6 +109,7 @@ services:
- node.role == manager
environment:
EASYHAPROXY_DISCOVER: swarm
EASYHAPROXY_REFRESH_CONF: "2"
EASYHAPROXY_SSL_MODE: "loose"
HAPROXY_CUSTOMERRORS: "true"
HAPROXY_USERNAME: admin
@ -127,7 +128,7 @@ services:
environment:
TITLE: "Public Website"
deploy:
replicas: 4
replicas: 1
labels:
easyhaproxy.http.host: "website.example.com"
easyhaproxy.http.port: "80"
@ -146,7 +147,7 @@ services:
environment:
TITLE: "Protected API"
deploy:
replicas: 6
replicas: 1
labels:
easyhaproxy.http.host: "api.example.com"
easyhaproxy.http.port: "80"
@ -173,7 +174,7 @@ services:
environment:
TITLE: "Admin Panel"
deploy:
replicas: 2
replicas: 1
labels:
easyhaproxy.http.host: "admin.example.com"
easyhaproxy.http.port: "80"