aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-05-18 22:28:13 +0200
committerAlex Auvolat <alex@adnab.me>2022-05-18 22:28:13 +0200
commit6639908fbdb9d5f3769275f101e3ece83b120af3 (patch)
treeebb8bef9992337e44435401bc5e724f86729e3eb
parente657ebd0a017acc73adba35994e0548f097bfc25 (diff)
downloadnixcfg-6639908fbdb9d5f3769275f101e3ece83b120af3.tar.gz
nixcfg-6639908fbdb9d5f3769275f101e3ece83b120af3.zip
Garage v0.7.1-k2v on staging
-rw-r--r--app/garage-staging/config/garage.toml3
-rw-r--r--app/garage-staging/deploy/garage.hcl26
2 files changed, 28 insertions, 1 deletions
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"
@@ -76,6 +77,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
address_mode = "driver"