Use group_start
This commit is contained in:
parent
1c72acbfb6
commit
579f78b689
|
@ -1,4 +1,4 @@
|
||||||
FROM danielberteaud/alpine:24.3-1
|
FROM danielberteaud/alpine:24.4-1
|
||||||
MAINTAINER Daniel Berteaud <dbd@ehtrace.com>
|
MAINTAINER Daniel Berteaud <dbd@ehtrace.com>
|
||||||
|
|
||||||
ARG VERSION=3.0.0-rc3
|
ARG VERSION=3.0.0-rc3
|
||||||
|
|
|
@ -3,20 +3,27 @@ job "traefik" {
|
||||||
|
|
||||||
datacenters = ["dc1"]
|
datacenters = ["dc1"]
|
||||||
region = "global"
|
region = "global"
|
||||||
priority = 70
|
|
||||||
|
|
||||||
|
|
||||||
constraint {
|
|
||||||
operator = "distinct_hosts"
|
|
||||||
value = "true"
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
group "traefik" {
|
group "traefik" {
|
||||||
|
|
||||||
|
|
||||||
count = 2
|
count = 2
|
||||||
shutdown_delay = "6s"
|
shutdown_delay = "6s"
|
||||||
|
|
||||||
|
|
||||||
|
constraint {
|
||||||
|
operator = "distinct_hosts"
|
||||||
|
value = "true"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
ephemeral_disk {
|
||||||
|
# Use minimal ephemeral disk
|
||||||
|
size = 101
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
network {
|
network {
|
||||||
mode = "bridge"
|
mode = "bridge"
|
||||||
port "http" {
|
port "http" {
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
job "[[ .instance ]]" {
|
job "[[ .instance ]]" {
|
||||||
|
|
||||||
[[- $c:= merge .traefik . ]]
|
[[ template "common/job_start" . ]]
|
||||||
|
|
||||||
[[ template "common/job_start" $c ]]
|
|
||||||
|
|
||||||
group "traefik" {
|
group "traefik" {
|
||||||
count = [[ .traefik.count ]]
|
[[ $c := merge .traefik . ]]
|
||||||
shutdown_delay = "6s"
|
[[ template "common/group_start" $c ]]
|
||||||
|
|
||||||
network {
|
network {
|
||||||
mode = "bridge"
|
mode = "bridge"
|
||||||
|
|
Loading…
Reference in New Issue