Make traefik a service rather than a system job
Sets it up to support auto_revert and auto_promote
This commit is contained in:
parent
4b6c388ed9
commit
3c0c74797d
@ -6,7 +6,7 @@ variable "base_hostname" {
|
|||||||
|
|
||||||
job "traefik" {
|
job "traefik" {
|
||||||
datacenters = ["dc1"]
|
datacenters = ["dc1"]
|
||||||
type = "system"
|
type = "service"
|
||||||
priority = 100
|
priority = 100
|
||||||
|
|
||||||
constraint {
|
constraint {
|
||||||
@ -14,12 +14,19 @@ job "traefik" {
|
|||||||
value = "ingress"
|
value = "ingress"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
constraint {
|
||||||
|
distinct_hosts = true
|
||||||
|
}
|
||||||
|
|
||||||
update {
|
update {
|
||||||
max_parallel = 1
|
max_parallel = 1
|
||||||
|
# canary = 1
|
||||||
|
# auto_promote = true
|
||||||
auto_revert = true
|
auto_revert = true
|
||||||
}
|
}
|
||||||
|
|
||||||
group "traefik" {
|
group "traefik" {
|
||||||
|
count = 1
|
||||||
|
|
||||||
network {
|
network {
|
||||||
port "web" {
|
port "web" {
|
||||||
|
Loading…
Reference in New Issue
Block a user