Make traefik a service rather than a system job

Sets it up to support auto_revert and auto_promote
This commit is contained in:
IamTheFij 2022-07-28 15:11:59 -07:00
parent 795b683046
commit 994c2f4743

View File

@ -6,7 +6,7 @@ variable "base_hostname" {
job "traefik" {
datacenters = ["dc1"]
type = "system"
type = "service"
priority = 100
constraint {
@ -14,12 +14,19 @@ job "traefik" {
value = "ingress"
}
constraint {
distinct_hosts = true
}
update {
max_parallel = 1
# canary = 1
# auto_promote = true
auto_revert = true
}
group "traefik" {
count = 1
network {
port "web" {