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] [admin]
api_bind_addr = "0.0.0.0:3909" api_bind_addr = "0.0.0.0:3909"
admin_token = "{{ key "secrets/garage-staging/admin_token" | trimSpace }}" 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" #trace_sink = "http://{{ env "attr.unique.network.ip-address" }}:4317"

View file

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