Update to garage config

This commit is contained in:
Alex 2022-09-20 17:13:36 +02:00
parent 72606368bf
commit 9b6bdc7092
Signed by: lx
GPG Key ID: 0E496D15096376BE
2 changed files with 16 additions and 14 deletions

View File

@ -29,4 +29,5 @@ index = "index.html"
[admin]
api_bind_addr = "0.0.0.0:3909"
admin_token = "{{ key "secrets/garage-staging/admin_token" | trimSpace }}"
metrics_token = "{{ key "secrets/garage-staging/metrics_token" | trimSpace }}"
#trace_sink = "http://{{ env "attr.unique.network.ip-address" }}:4317"

View File

@ -60,7 +60,7 @@ job "garage-staging" {
driver = "docker"
config {
image = "dxflrs/amd64_garage:v0.8.0-beta1-k2v"
image = "dxflrs/amd64_garage:v0.8.0-beta2-k2v"
command = "/garage"
args = [ "server" ]
network_mode = "host"
@ -77,7 +77,8 @@ job "garage-staging" {
}
resources {
memory = 1000
memory = 2000
memory_max = 3000
cpu = 1000
}
@ -117,18 +118,18 @@ job "garage-staging" {
port = 3993
address_mode = "driver"
name = "garage-staging-k2v-api"
check {
type = "tcp"
port = 3993
address_mode = "driver"
interval = "60s"
timeout = "5s"
check_restart {
limit = 3
grace = "90s"
ignore_warnings = false
}
}
# check {
# type = "tcp"
# port = 3993
# address_mode = "driver"
# interval = "60s"
# timeout = "5s"
# check_restart {
# limit = 3
# grace = "90s"
# ignore_warnings = false
# }
# }
}
service {