diff options
author | Alex Auvolat <alex@adnab.me> | 2022-08-25 13:59:40 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-08-25 13:59:40 +0200 |
commit | 72d033dcd40a65ccf7f41f51af356ffc20144c30 (patch) | |
tree | 2b1247bcae11a1f993590bc9db8bf08a53564350 /cluster/prod/app/garage/deploy | |
parent | fd3ed44dad783c15f2793788f9384d48760666a3 (diff) | |
download | nixcfg-72d033dcd40a65ccf7f41f51af356ffc20144c30.tar.gz nixcfg-72d033dcd40a65ccf7f41f51af356ffc20144c30.zip |
Remove garage files at bad location, add basic telemetry
Diffstat (limited to 'cluster/prod/app/garage/deploy')
-rw-r--r-- | cluster/prod/app/garage/deploy/garage.hcl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cluster/prod/app/garage/deploy/garage.hcl b/cluster/prod/app/garage/deploy/garage.hcl index bbaaec1..5a9c6b5 100644 --- a/cluster/prod/app/garage/deploy/garage.hcl +++ b/cluster/prod/app/garage/deploy/garage.hcl @@ -18,6 +18,7 @@ job "garage" { port "s3" { static = 3900 } port "rpc" { static = 3901 } port "web" { static = 3902 } + port "admin" { static = 3903 } } update { @@ -125,6 +126,24 @@ job "garage" { } } + service { + port = 3903 + address_mode = "driver" + name = "garage-admin" + check { + type = "tcp" + port = 3903 + address_mode = "driver" + interval = "60s" + timeout = "5s" + check_restart { + limit = 3 + grace = "90s" + ignore_warnings = false + } + } + } + restart { interval = "30m" attempts = 10 |