Compare commits

...

9 Commits

Author SHA1 Message Date
d6dac9bd5c priorities for jobs
All checks were successful
continuous-integration/drone/push Build is passing
2024-03-25 19:48:27 +01:00
65a3a44ea8 openwrt in apps 2024-03-25 19:37:38 +01:00
76c8aa65a1 node_pools for all? 2024-03-25 19:31:58 +01:00
c9172d1ec8 more node pools 2024-03-24 09:25:08 +01:00
34e1f88f6a nodepools 2024-03-24 09:13:38 +01:00
db1bb94627 pools for all? 2024-03-21 21:55:45 +01:00
a8724b8b4f pools _sys def 2024-03-21 21:19:23 +01:00
10bef26628 node pools 2024-03-21 20:58:52 +01:00
043c86ea6f spread for apt-cacher 2024-03-21 20:58:18 +01:00
18 changed files with 53 additions and 13 deletions

View File

@@ -7,6 +7,8 @@ variable "datacenters" {
job "plugin-nfs-controller" {
datacenters = var.datacenters
node_pool = "sys"
priority = 100
group "controller" {
task "plugin" {
@@ -35,4 +37,4 @@ job "plugin-nfs-controller" {
}
}
}
}
}

View File

@@ -7,7 +7,8 @@ variable "datacenters" {
job "plugin-nfs-nodes" {
datacenters = var.datacenters
node_pool = "all"
priority = 100
type = "system"
group "nodes" {
@@ -39,4 +40,4 @@ job "plugin-nfs-nodes" {
}
}
}
}
}

7
_sys/pool-apps.hcl Normal file
View File

@@ -0,0 +1,7 @@
node_pool "apps" {
description = "Application Nodes"
meta {
environment = "apps"
}
}

7
_sys/pool-sys.hcl Normal file
View File

@@ -0,0 +1,7 @@
node_pool "sys" {
description = "essential services"
meta {
environment = "sys"
}
}

View File

@@ -2,6 +2,8 @@ job "traefik" {
region = "global"
datacenters = ["nummer5"]
type = "system"
node_pool = "all"
priority = 100
group "traefik" {
#count = 5

View File

@@ -1,6 +1,9 @@
job "apt-cacher-ng" {
datacenters = ["nummer5"]
node_pool = "sys"
priority = 90
group "system" {
count = 1
@@ -9,7 +12,10 @@ job "apt-cacher-ng" {
to = 3142
}
}
spread {
attribute = "${node.unique.id}"
weight = 100
}
service {
name = "apt-cache"
port = "http"

View File

@@ -3,7 +3,8 @@ job "dmarc" {
"nummer5",
]
type = "service"
node_pool = "apps"
priority = 20
group "apps" {
count = 1
@@ -61,4 +62,4 @@ job "dmarc" {
}
}
}
}

View File

@@ -3,6 +3,7 @@ job "docker-registry-ui" {
"nummer5",
]
type = "service"
node_pool = "apps"
group "apps" {
count = 1

View File

@@ -3,6 +3,7 @@ job "drone-runner" {
"nummer5",
]
type = "service"
node_pool = "sys"
group "apps" {
count = 1

View File

@@ -3,6 +3,8 @@ job "drone" {
"nummer5",
]
type = "service"
node_pool = "apps"
priority = 30
group "apps" {
count = 1

View File

@@ -3,6 +3,8 @@ job "gitea" {
"nummer5",
]
type = "service"
node_pool = "apps"
priority = 79
group "apps" {
count = 1
@@ -93,4 +95,4 @@ job "gitea" {
}
}
}
}

View File

@@ -3,7 +3,7 @@ job "homeassistant" {
"nummer5",
]
type = "service"
node_pool = "apps"
group "apps" {
count = 1

View File

@@ -1,6 +1,8 @@
job "homer" {
datacenters = ["nummer5"]
node_pool = "apps"
priority = 80
group "apps" {
count = 1

View File

@@ -1,6 +1,6 @@
job "mosquitto-prometheus-exporter" {
datacenters = ["nummer5"]
node_pool = "sys"
group "apps" {
count = 1

View File

@@ -3,6 +3,7 @@ job "nodered" {
"nummer5",
]
type = "service"
node_pool = "apps"
group "apps" {
count = 1

View File

@@ -1,6 +1,8 @@
job "openwrt" {
datacenters = ["nummer5"]
node_pool = "apps"
priority = 10
group "apps" {
count = 1

View File

@@ -1,6 +1,8 @@
job "postgres" {
datacenters = ["nummer5"]
type = "service"
node_pool = "sys"
priority = 80
group "service" {
count = 1
@@ -69,4 +71,4 @@ job "postgres" {
auto_revert = false
canary = 0
}
}
}

View File

@@ -1,6 +1,7 @@
job "redis" {
datacenters = ["nummer5"]
node_pool = "apps"
group "cache" {