From 0c4419b6a4550e5afe866a3caf505e1a19e91fa2 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Fri, 24 Jan 2020 16:53:05 +0100 Subject: WIP object storage --- nomad/object_storage.hcl | 159 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 159 insertions(+) create mode 100644 nomad/object_storage.hcl diff --git a/nomad/object_storage.hcl b/nomad/object_storage.hcl new file mode 100644 index 0000000..fa40c4b --- /dev/null +++ b/nomad/object_storage.hcl @@ -0,0 +1,159 @@ +job "not_safe_object_storage" { + datacenters = ["dc1"] + type = "service" + + constraint { + attribute = "${attr.cpu.arch}" + value = "amd64" + } + + group "not_safe_pithos" { + count = 2 + task "not_safe_server" { + driver = "docker" + config { + image = "superboum/amd64_pithos:v1" + readonly_rootfs = true + port_map { + s3_port = 8080 + } + volumes = [ + "secrets/pithos.yaml:/etc/pithos/pithos.yaml" + ] + } + + resources { + memory = 500 + network { + port "s3_port" { + static = "8080" + } + } + } + + template { + data = <