Compare commits
3 Commits
46e743b84a
...
b127b9d685
| Author | SHA1 | Date | |
|---|---|---|---|
| b127b9d685 | |||
| 68bd782c14 | |||
| fe8f8748df |
@@ -3,7 +3,7 @@ job "docker-registry-ui" {
|
||||
"nummer5",
|
||||
]
|
||||
type = "service"
|
||||
node_pool = "apps"
|
||||
node_pool = "sys"
|
||||
|
||||
group "apps" {
|
||||
count = 1
|
||||
|
||||
@@ -3,7 +3,7 @@ job "drone-runner" {
|
||||
"nummer5",
|
||||
]
|
||||
type = "service"
|
||||
node_pool = "apps"
|
||||
node_pool = "sys"
|
||||
|
||||
group "apps" {
|
||||
count = 1
|
||||
@@ -77,8 +77,8 @@ job "drone-runner" {
|
||||
}
|
||||
|
||||
resources {
|
||||
cpu = 300
|
||||
memory = 500
|
||||
cpu = 2000
|
||||
memory = 1024
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ capability {
|
||||
}
|
||||
|
||||
context {
|
||||
server = "ebin02.wks"
|
||||
server = "ebin01.wks"
|
||||
share = "/data/raid1-ssd/app-data/drone-data"
|
||||
mountPermissions = "0"
|
||||
}
|
||||
|
||||
@@ -47,6 +47,7 @@ job "gitea" {
|
||||
}
|
||||
|
||||
restart {
|
||||
interval = "10m"
|
||||
attempts = 5
|
||||
delay = "30s"
|
||||
}
|
||||
@@ -89,7 +90,7 @@ job "gitea" {
|
||||
}
|
||||
|
||||
resources {
|
||||
cpu = 200
|
||||
cpu = 500
|
||||
memory = 512
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ capability {
|
||||
}
|
||||
|
||||
context {
|
||||
server = "ebin02.wks"
|
||||
server = "ebin01.wks"
|
||||
share = "/data/raid1-ssd/app-data/gitea-data"
|
||||
mountPermissions = "0"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
job "openwrt" {
|
||||
datacenters = ["nummer5"]
|
||||
node_pool = "apps"
|
||||
node_pool = "sys"
|
||||
priority = 10
|
||||
|
||||
group "apps" {
|
||||
|
||||
@@ -3,7 +3,12 @@ job "postgres" {
|
||||
type = "service"
|
||||
node_pool = "sys"
|
||||
priority = 80
|
||||
|
||||
|
||||
#constraint {
|
||||
# attribute = "${attr.unique.hostname}"
|
||||
# value = "pine01"
|
||||
#}
|
||||
|
||||
group "service" {
|
||||
count = 1
|
||||
volume "postgres-data" {
|
||||
@@ -15,7 +20,7 @@ job "postgres" {
|
||||
}
|
||||
|
||||
network {
|
||||
mode = "host"
|
||||
#mode = "host"
|
||||
port "postgres"{
|
||||
static = 5432
|
||||
}
|
||||
@@ -23,10 +28,10 @@ job "postgres" {
|
||||
service {
|
||||
name = "postgres"
|
||||
port = "postgres"
|
||||
#tags = [
|
||||
# "traefik.enable=true",
|
||||
# "traefik.tcp.routers.postgres.rule=Host(`postgres.service.nr5`)",
|
||||
#]
|
||||
tags = [
|
||||
"traefik.enable=true",
|
||||
"traefik.tcp.routers.postgres.rule=Host(`postgres.service.nr5`)",
|
||||
]
|
||||
}
|
||||
task "postgres" {
|
||||
driver = "podman"
|
||||
@@ -49,8 +54,8 @@ job "postgres" {
|
||||
}
|
||||
|
||||
resources {
|
||||
cpu = 1000
|
||||
memory = 512
|
||||
cpu = 3500
|
||||
memory = 1500
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
hosts="pine01.wks pine02.wks pine03.wks pine04.wks pine05.wks adm01.wks ebin01.wks ebin02.wks"
|
||||
hosts="adm01.wks pine01.wks pine02.wks pine03.wks pine04.wks pine05.wks ebin01.wks ebin02.wks drucki.wks switch_cloud.wks drucki_switch.wks"
|
||||
domain="wks"
|
||||
|
||||
Reference in New Issue
Block a user