From 34e1f88f6a7386c6f50d1ef3bd8a3b58d348cc2c Mon Sep 17 00:00:00 2001 From: Udo Waechter Date: Sun, 24 Mar 2024 09:13:38 +0100 Subject: [PATCH] nodepools --- _sys/nfs-nodes.hcl | 1 + _sys/traefik.hcl | 1 + apps/apt-cacher-ng/live.hcl | 2 +- apps/dmarc/live.hcl | 1 + apps/docker-registry/live-ui.hcl | 1 + apps/drone/live.hcl | 2 +- apps/gitea/live.hcl | 2 +- apps/postgresql/live.hcl | 4 ++-- apps/redis/live.hcl | 2 +- 9 files changed, 10 insertions(+), 6 deletions(-) diff --git a/_sys/nfs-nodes.hcl b/_sys/nfs-nodes.hcl index 9316be5..59b30c3 100644 --- a/_sys/nfs-nodes.hcl +++ b/_sys/nfs-nodes.hcl @@ -7,6 +7,7 @@ variable "datacenters" { job "plugin-nfs-nodes" { datacenters = var.datacenters + node_pool = "all" type = "system" diff --git a/_sys/traefik.hcl b/_sys/traefik.hcl index 4c6b99a..1c1280b 100644 --- a/_sys/traefik.hcl +++ b/_sys/traefik.hcl @@ -2,6 +2,7 @@ job "traefik" { region = "global" datacenters = ["nummer5"] type = "system" + node_pool = "all" group "traefik" { #count = 5 diff --git a/apps/apt-cacher-ng/live.hcl b/apps/apt-cacher-ng/live.hcl index 7860369..9ef563e 100644 --- a/apps/apt-cacher-ng/live.hcl +++ b/apps/apt-cacher-ng/live.hcl @@ -1,7 +1,7 @@ job "apt-cacher-ng" { datacenters = ["nummer5"] - node_pool = "sys" + #node_pool = "sys" group "system" { count = 1 diff --git a/apps/dmarc/live.hcl b/apps/dmarc/live.hcl index 5c9af20..85b2527 100644 --- a/apps/dmarc/live.hcl +++ b/apps/dmarc/live.hcl @@ -4,6 +4,7 @@ job "dmarc" { ] type = "service" node_pool = "apps" + group "apps" { count = 1 diff --git a/apps/docker-registry/live-ui.hcl b/apps/docker-registry/live-ui.hcl index 98d0719..e940e5a 100644 --- a/apps/docker-registry/live-ui.hcl +++ b/apps/docker-registry/live-ui.hcl @@ -3,6 +3,7 @@ job "docker-registry-ui" { "nummer5", ] type = "service" + node_pool = "apps" group "apps" { count = 1 diff --git a/apps/drone/live.hcl b/apps/drone/live.hcl index 8f05805..98eaaa6 100644 --- a/apps/drone/live.hcl +++ b/apps/drone/live.hcl @@ -3,7 +3,7 @@ job "drone" { "nummer5", ] type = "service" - node_pool = "sys" + node_pool = "apps" group "apps" { count = 1 diff --git a/apps/gitea/live.hcl b/apps/gitea/live.hcl index 4f6cdd0..bf1bc8f 100644 --- a/apps/gitea/live.hcl +++ b/apps/gitea/live.hcl @@ -94,4 +94,4 @@ job "gitea" { } } -} \ No newline at end of file +} diff --git a/apps/postgresql/live.hcl b/apps/postgresql/live.hcl index 65e505f..a15fd29 100644 --- a/apps/postgresql/live.hcl +++ b/apps/postgresql/live.hcl @@ -1,7 +1,7 @@ job "postgres" { datacenters = ["nummer5"] type = "service" - node_pool = "sys" + #node_pool = "sys" group "service" { count = 1 @@ -70,4 +70,4 @@ job "postgres" { auto_revert = false canary = 0 } -} \ No newline at end of file +} diff --git a/apps/redis/live.hcl b/apps/redis/live.hcl index 320ba59..02481ba 100644 --- a/apps/redis/live.hcl +++ b/apps/redis/live.hcl @@ -1,7 +1,7 @@ job "redis" { datacenters = ["nummer5"] - node_pool = "sys" + node_pool = "apps" group "cache" {