From 3c0c74797dee551432a7f3ddd2f0ab7a433c4e64 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Thu, 28 Jul 2022 15:11:59 -0700 Subject: [PATCH] Make traefik a service rather than a system job Sets it up to support auto_revert and auto_promote --- nomad/traefik/traefik.nomad | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nomad/traefik/traefik.nomad b/nomad/traefik/traefik.nomad index cc66bdf..5ff0349 100644 --- a/nomad/traefik/traefik.nomad +++ b/nomad/traefik/traefik.nomad @@ -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" {