Add update_config/rollback_config rolling deploy to all traefik services (start-first, parallelism=1)
This commit is contained in:
@@ -20,6 +20,16 @@ services:
|
|||||||
labels: [traefik.enable=false]
|
labels: [traefik.enable=false]
|
||||||
resources:
|
resources:
|
||||||
limits: {cpus: '1', memory: 128M}
|
limits: {cpus: '1', memory: 128M}
|
||||||
|
update_config:
|
||||||
|
parallelism: 1
|
||||||
|
delay: 30s
|
||||||
|
failure_action: rollback
|
||||||
|
monitor: 15s
|
||||||
|
order: start-first
|
||||||
|
rollback_config:
|
||||||
|
parallelism: 1
|
||||||
|
failure_action: pause
|
||||||
|
order: start-first
|
||||||
|
|
||||||
keepalived-backup:
|
keepalived-backup:
|
||||||
environment:
|
environment:
|
||||||
@@ -41,6 +51,16 @@ services:
|
|||||||
labels: [traefik.enable=false]
|
labels: [traefik.enable=false]
|
||||||
resources:
|
resources:
|
||||||
limits: {cpus: '1', memory: 128M}
|
limits: {cpus: '1', memory: 128M}
|
||||||
|
update_config:
|
||||||
|
parallelism: 1
|
||||||
|
delay: 30s
|
||||||
|
failure_action: rollback
|
||||||
|
monitor: 15s
|
||||||
|
order: start-first
|
||||||
|
rollback_config:
|
||||||
|
parallelism: 1
|
||||||
|
failure_action: pause
|
||||||
|
order: start-first
|
||||||
|
|
||||||
reverse-proxy:
|
reverse-proxy:
|
||||||
image: public.ecr.aws/docker/library/traefik:latest
|
image: public.ecr.aws/docker/library/traefik:latest
|
||||||
@@ -108,6 +128,16 @@ services:
|
|||||||
- traefik.http.routers.traefik.middlewares=forwardAuth-authentik@file, crowdsec@file
|
- traefik.http.routers.traefik.middlewares=forwardAuth-authentik@file, crowdsec@file
|
||||||
resources:
|
resources:
|
||||||
limits: {cpus: '4', memory: 512M}
|
limits: {cpus: '4', memory: 512M}
|
||||||
|
update_config:
|
||||||
|
parallelism: 1
|
||||||
|
delay: 30s
|
||||||
|
failure_action: rollback
|
||||||
|
monitor: 15s
|
||||||
|
order: start-first
|
||||||
|
rollback_config:
|
||||||
|
parallelism: 1
|
||||||
|
failure_action: pause
|
||||||
|
order: start-first
|
||||||
|
|
||||||
traefik-certs-dumper:
|
traefik-certs-dumper:
|
||||||
image: ghcr.io/ldez/traefik-certs-dumper:v2.10.0
|
image: ghcr.io/ldez/traefik-certs-dumper:v2.10.0
|
||||||
@@ -119,6 +149,16 @@ services:
|
|||||||
labels: [traefik.enable=false]
|
labels: [traefik.enable=false]
|
||||||
resources:
|
resources:
|
||||||
limits: {cpus: '1', memory: 64M}
|
limits: {cpus: '1', memory: 64M}
|
||||||
|
update_config:
|
||||||
|
parallelism: 1
|
||||||
|
delay: 30s
|
||||||
|
failure_action: rollback
|
||||||
|
monitor: 15s
|
||||||
|
order: start-first
|
||||||
|
rollback_config:
|
||||||
|
parallelism: 1
|
||||||
|
failure_action: pause
|
||||||
|
order: start-first
|
||||||
|
|
||||||
speedtest:
|
speedtest:
|
||||||
image: openspeedtest/latest
|
image: openspeedtest/latest
|
||||||
@@ -142,6 +182,16 @@ services:
|
|||||||
- autoheal=true
|
- autoheal=true
|
||||||
resources:
|
resources:
|
||||||
limits: {cpus: '8', memory: 1G}
|
limits: {cpus: '8', memory: 1G}
|
||||||
|
update_config:
|
||||||
|
parallelism: 1
|
||||||
|
delay: 30s
|
||||||
|
failure_action: rollback
|
||||||
|
monitor: 15s
|
||||||
|
order: start-first
|
||||||
|
rollback_config:
|
||||||
|
parallelism: 1
|
||||||
|
failure_action: pause
|
||||||
|
order: start-first
|
||||||
|
|
||||||
iperf3-server:
|
iperf3-server:
|
||||||
image: networkstatic/iperf3:latest
|
image: networkstatic/iperf3:latest
|
||||||
@@ -164,6 +214,16 @@ services:
|
|||||||
- autoheal=true
|
- autoheal=true
|
||||||
resources:
|
resources:
|
||||||
limits: {cpus: '4', memory: 128M}
|
limits: {cpus: '4', memory: 128M}
|
||||||
|
update_config:
|
||||||
|
parallelism: 1
|
||||||
|
delay: 30s
|
||||||
|
failure_action: rollback
|
||||||
|
monitor: 15s
|
||||||
|
order: start-first
|
||||||
|
rollback_config:
|
||||||
|
parallelism: 1
|
||||||
|
failure_action: pause
|
||||||
|
order: start-first
|
||||||
|
|
||||||
whoami:
|
whoami:
|
||||||
image: emilevauge/whoami
|
image: emilevauge/whoami
|
||||||
@@ -181,6 +241,16 @@ services:
|
|||||||
- traefik.http.routers.whoami.middlewares=crowdsec@file, forwardAuth-authentik@file
|
- traefik.http.routers.whoami.middlewares=crowdsec@file, forwardAuth-authentik@file
|
||||||
resources:
|
resources:
|
||||||
limits: {cpus: '1', memory: 16M}
|
limits: {cpus: '1', memory: 16M}
|
||||||
|
update_config:
|
||||||
|
parallelism: 1
|
||||||
|
delay: 30s
|
||||||
|
failure_action: rollback
|
||||||
|
monitor: 15s
|
||||||
|
order: start-first
|
||||||
|
rollback_config:
|
||||||
|
parallelism: 1
|
||||||
|
failure_action: pause
|
||||||
|
order: start-first
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
traefik_frontend:
|
traefik_frontend:
|
||||||
|
|||||||
Reference in New Issue
Block a user