feat: add healthcheck and enable ping API for Traefik proxy manifests
This commit is contained in:
parent
5b783f9f45
commit
7e2e26ddd4
|
|
@ -34,6 +34,9 @@ services:
|
|||
# Log Level (optional)
|
||||
- --log.level=INFO
|
||||
|
||||
# Ping API (required for healthcheck)
|
||||
- --ping=true
|
||||
|
||||
- --entrypoints.web.transport.respondingTimeouts.idleTimeout=60s
|
||||
- --entrypoints.websecure.transport.respondingTimeouts.idleTimeout=60s
|
||||
|
||||
|
|
@ -46,6 +49,12 @@ services:
|
|||
- /var/data/logs:/var/log/traefik # Persistent storage for access logs (optional)
|
||||
networks:
|
||||
- traefik-public
|
||||
healthcheck:
|
||||
test: ["CMD", "traefik", "healthcheck", "--ping"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 5s
|
||||
deploy:
|
||||
mode: global # Deploy Traefik on all manager nodes (or a specific one with placement constraints)
|
||||
placement:
|
||||
|
|
|
|||
|
|
@ -34,6 +34,9 @@ services:
|
|||
# Log Level (optional)
|
||||
- --log.level=INFO
|
||||
|
||||
# Ping API (required for healthcheck)
|
||||
- --ping=true
|
||||
|
||||
- --entrypoints.web.transport.respondingTimeouts.idleTimeout=60s
|
||||
- --entrypoints.websecure.transport.respondingTimeouts.idleTimeout=60s
|
||||
|
||||
|
|
@ -47,6 +50,12 @@ services:
|
|||
- /var/data/logs:/var/log/traefik # Persistent storage for access logs (optional)
|
||||
networks:
|
||||
- traefik-public
|
||||
healthcheck:
|
||||
test: ["CMD", "traefik", "healthcheck", "--ping"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 5s
|
||||
deploy:
|
||||
mode: global # Deploy Traefik on all manager nodes (or a specific one with placement constraints)
|
||||
placement:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user