From 6639908fbdb9d5f3769275f101e3ece83b120af3 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 18 May 2022 22:28:13 +0200 Subject: [PATCH] Garage v0.7.1-k2v on staging --- app/garage-staging/config/garage.toml | 3 +++ app/garage-staging/deploy/garage.hcl | 26 +++++++++++++++++++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/app/garage-staging/config/garage.toml b/app/garage-staging/config/garage.toml index d2c51dd..d24acad 100644 --- a/app/garage-staging/config/garage.toml +++ b/app/garage-staging/config/garage.toml @@ -17,6 +17,9 @@ bootstrap_peers = [] s3_region = "garage-staging" api_bind_addr = "0.0.0.0:3990" +[k2v_api] +api_bind_addr = "0.0.0.0:3993" + [s3_web] bind_addr = "0.0.0.0:3992" root_domain = ".garage-staging-web.home.adnab.me" diff --git a/app/garage-staging/deploy/garage.hcl b/app/garage-staging/deploy/garage.hcl index 7ba9032..916eae2 100644 --- a/app/garage-staging/deploy/garage.hcl +++ b/app/garage-staging/deploy/garage.hcl @@ -15,6 +15,7 @@ job "garage-staging" { port "s3" { static = 3990 } port "rpc" { static = 3991 } port "web" { static = 3992 } + port "k2v" { static = 3993 } port "admin" { static = 3909 } } @@ -28,7 +29,7 @@ job "garage-staging" { driver = "docker" config { - image = "dxflrs/amd64_garage:v0.7.1" + image = "dxflrs/amd64_garage:v0.7.1-k2v" command = "/garage" args = [ "server" ] network_mode = "host" @@ -75,6 +76,29 @@ job "garage-staging" { } } + service { + tags = [ + "garage-staging-k2v-api", + "tricot k2v-staging.home.adnab.me", + "tricot-add-header Access-Control-Allow-Origin *", + ] + 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 + } + } + } + service { tags = ["garage-staging-rpc"] port = 3991