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/faeltkullen.nomad.hcl | |
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/faeltkullen.nomad.hcl')
-rw-r--r-- | jobs/faeltkullen.nomad.hcl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/jobs/faeltkullen.nomad.hcl b/jobs/faeltkullen.nomad.hcl index a5065fe..422346b 100644 --- a/jobs/faeltkullen.nomad.hcl +++ b/jobs/faeltkullen.nomad.hcl @@ -6,6 +6,12 @@ job "faeltkullen" { } } + update { + canary = 1 + auto_revert = true + auto_promote = true + } + volume "files" { type = "host" source = "static-files" @@ -38,7 +44,7 @@ job "faeltkullen" { } config { - image = "nginx:1.25-alpine" + image = "nginx:1.29-alpine" ports = ["http"] volumes = [ |