From d63f7922db913bb0f61bbbf7886c8aa2d85fa631 Mon Sep 17 00:00:00 2001 From: Francisco Gaona Date: Tue, 18 Apr 2023 15:52:15 -0500 Subject: [PATCH] update deployment plans --- neogenia.nomad | 7 ++++--- registry.nomad | 15 +++++++++------ 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/neogenia.nomad b/neogenia.nomad index d23c78e..65c4f8b 100644 --- a/neogenia.nomad +++ b/neogenia.nomad @@ -4,8 +4,9 @@ job "neogenia" { type = "service" constraint { - attribute = "${meta.group}" - value = "contabo" + attribute = "${node.unique.name}" + operator = "!=" + value = "mars-nomad" } group "ingress-group" { @@ -74,7 +75,7 @@ job "neogenia" { group "neogenia" { - count = 3 + count = 1 update { max_parallel = 1 diff --git a/registry.nomad b/registry.nomad index d675b03..0ed6f11 100644 --- a/registry.nomad +++ b/registry.nomad @@ -3,31 +3,34 @@ job "docker-registry" { datacenters = ["dc1"] constraint { - attribute = "${meta.group}" - value = "contabo" + attribute = "${node.unique.name}" + value = "saturn-nomad" } group "registry" { count = 1 - volume "registry" { + /*volume "registry" { type = "host" read_only = false source = "registry" - } + }*/ task "registry" { driver = "docker" - volume_mount { + /*volume_mount { volume = "registry" destination = "/var/lib/registry/" read_only = false - } + }*/ config { image = "registry:2" ports = ["registry-port"] + volumes = [ + "/root/nomadvolumes/registry:/var/lib/registry/" + ] } }