diff options
author | Mathias Magnusson <mathias@magnusson.space> | 2025-06-30 19:05:35 +0200 |
---|---|---|
committer | Mathias Magnusson <mathias@magnusson.space> | 2025-06-30 19:05:35 +0200 |
commit | 58e382e14563b0b21a5e71dc9c16258c1be99a47 (patch) | |
tree | 80ea2966fd6e07f8241ebfdad5faa0fb9358a534 /jobs/homepage | |
parent | 8f81f53a368b330ecf15fcd6ef24d171e82774ee (diff) | |
download | garm-58e382e14563b0b21a5e71dc9c16258c1be99a47.tar.gz |
add zero-downtime deployments & update nginx versions
well it's not quite zero-downtime because it seems that for a while the
old task has stopped but has not yet been removed from traefik, so for a
few seconds half the requests get back "bad gateway"
Diffstat (limited to 'jobs/homepage')
-rw-r--r-- | jobs/homepage/homepage.nomad.hcl | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/jobs/homepage/homepage.nomad.hcl b/jobs/homepage/homepage.nomad.hcl index dc1be71..f859314 100644 --- a/jobs/homepage/homepage.nomad.hcl +++ b/jobs/homepage/homepage.nomad.hcl @@ -1,13 +1,17 @@ job "homepage" { group "web" { - count = 1 - network { port "http" { to = 80 } } + update { + canary = 1 + auto_revert = true + auto_promote = true + } + service { name = "homepage" port = "http" @@ -29,7 +33,7 @@ job "homepage" { } config { - image = "nginx:1.25-alpine" + image = "nginx:1.29-alpine" ports = ["http"] volumes = [ |