From c11b6499b8ff35c5a6468cc1e4adb474ea72a963 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 4 Jan 2023 09:35:40 +0100 Subject: [PATCH] prod: deploy d53 --- cluster/prod/app/core/deploy/core-service.hcl | 64 ++++++++++++ cluster/prod/app/core/deploy/core.hcl | 8 +- cluster/prod/app/drone-ci/deploy/server.hcl | 3 +- .../prod/app/garage/deploy/garage-light.hcl | 97 ------------------ cluster/prod/app/garage/deploy/garage.hcl | 2 +- cluster/prod/app/guichet/deploy/directory.hcl | 3 +- cluster/prod/app/jitsi/deploy/jitsi.hcl | 3 +- .../telemetry/deploy/telemetry-service.hcl | 98 +------------------ .../telemetry/deploy/telemetry-storage.hcl | 97 ++++++++++++++++++ 9 files changed, 178 insertions(+), 197 deletions(-) create mode 100644 cluster/prod/app/core/deploy/core-service.hcl delete mode 100644 cluster/prod/app/garage/deploy/garage-light.hcl create mode 100644 cluster/prod/app/telemetry/deploy/telemetry-storage.hcl diff --git a/cluster/prod/app/core/deploy/core-service.hcl b/cluster/prod/app/core/deploy/core-service.hcl new file mode 100644 index 0000000..d7a6299 --- /dev/null +++ b/cluster/prod/app/core/deploy/core-service.hcl @@ -0,0 +1,64 @@ +job "core-service" { + datacenters = ["neptune", "orion", "bespin"] + type = "service" + priority = 90 + + group "D53" { + count = 1 + + task "d53" { + driver = "docker" + + config { + image = "lxpz/amd64_d53:2" + network_mode = "host" + readonly_rootfs = true + volumes = [ + "secrets:/etc/d53", + ] + } + + resources { + cpu = 100 + memory = 100 + } + + restart { + interval = "3m" + attempts = 10 + delay = "15s" + mode = "delay" + } + + template { + data = "{{ key \"secrets/consul/consul-ca.crt\" }}" + destination = "secrets/consul-ca.crt" + } + + template { + data = "{{ key \"secrets/consul/consul-client.crt\" }}" + destination = "secrets/consul-client.crt" + } + + template { + data = "{{ key \"secrets/consul/consul-client.key\" }}" + destination = "secrets/consul-client.key" + } + + template { + data = <