From fa356847d3b60c6ea2fb72ce3448ec9e30002158 Mon Sep 17 00:00:00 2001 From: Asara Date: Thu, 29 Jul 2021 23:51:21 -0400 Subject: [PATCH] Add job constraints --- nomad/freshrss.nomad | 5 +++++ nomad/gitea.nomad | 5 +++++ nomad/nextcloud.nomad | 5 +++++ nomad/radicale.nomad | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/nomad/freshrss.nomad b/nomad/freshrss.nomad index 37768ed..6bd9f5d 100644 --- a/nomad/freshrss.nomad +++ b/nomad/freshrss.nomad @@ -3,6 +3,11 @@ job "freshrss" { region = "global" type = "service" + constraint { + attribute = "${meta.storage_optimized}" + value = "true" + } + update { stagger = "30s" max_parallel = 1 diff --git a/nomad/gitea.nomad b/nomad/gitea.nomad index 2023750..86cfc0e 100644 --- a/nomad/gitea.nomad +++ b/nomad/gitea.nomad @@ -3,6 +3,11 @@ job "gitea" { region = "global" type = "service" + constraint { + attribute = "${meta.storage_optimized}" + value = "true" + } + update { stagger = "30s" max_parallel = 1 diff --git a/nomad/nextcloud.nomad b/nomad/nextcloud.nomad index f793b1c..c769fe2 100644 --- a/nomad/nextcloud.nomad +++ b/nomad/nextcloud.nomad @@ -3,6 +3,11 @@ job "nextcloud" { region = "global" type = "service" + constraint { + attribute = "${meta.storage_optimized}" + value = "true" + } + update { stagger = "30s" max_parallel = 1 diff --git a/nomad/radicale.nomad b/nomad/radicale.nomad index de42d8e..3c76c9b 100644 --- a/nomad/radicale.nomad +++ b/nomad/radicale.nomad @@ -3,6 +3,11 @@ job "radicale" { region = "global" type = "service" + constraint { + attribute = "${meta.storage_optimized}" + value = "true" + } + update { stagger = "30s" max_parallel = 1