forked from Deuxfleurs/infrastructure
Set priorities
This commit is contained in:
parent
685bc45802
commit
b6ccf06d8a
11 changed files with 12 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
job "directory2" {
|
job "directory2" {
|
||||||
datacenters = ["dc1"]
|
datacenters = ["dc1"]
|
||||||
type = "service"
|
type = "service"
|
||||||
|
priority = 90
|
||||||
|
|
||||||
constraint {
|
constraint {
|
||||||
attribute = "${attr.cpu.arch}"
|
attribute = "${attr.cpu.arch}"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
job "core" {
|
job "core" {
|
||||||
datacenters = ["dc1"]
|
datacenters = ["dc1"]
|
||||||
type = "system"
|
type = "system"
|
||||||
|
priority = 90
|
||||||
|
|
||||||
constraint {
|
constraint {
|
||||||
attribute = "${attr.cpu.arch}"
|
attribute = "${attr.cpu.arch}"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
job "email" {
|
job "email" {
|
||||||
datacenters = ["dc1"]
|
datacenters = ["dc1"]
|
||||||
type = "service"
|
type = "service"
|
||||||
|
priority = 65
|
||||||
|
|
||||||
group "dovecot" {
|
group "dovecot" {
|
||||||
count = 1
|
count = 1
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
job "garage" {
|
job "garage" {
|
||||||
datacenters = ["dc1", "belair", "saturne"]
|
datacenters = ["dc1", "belair", "saturne"]
|
||||||
type = "system"
|
type = "system"
|
||||||
|
priority = 40
|
||||||
|
|
||||||
constraint {
|
constraint {
|
||||||
attribute = "${attr.cpu.arch}"
|
attribute = "${attr.cpu.arch}"
|
||||||
|
@ -11,6 +12,7 @@ job "garage" {
|
||||||
task "server" {
|
task "server" {
|
||||||
driver = "docker"
|
driver = "docker"
|
||||||
config {
|
config {
|
||||||
|
advertise_ipv6_address = true
|
||||||
image = "lxpz/garage_amd64:4"
|
image = "lxpz/garage_amd64:4"
|
||||||
network_mode = "host"
|
network_mode = "host"
|
||||||
volumes = [
|
volumes = [
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
job "im" {
|
job "im" {
|
||||||
datacenters = ["dc1"]
|
datacenters = ["dc1"]
|
||||||
type = "service"
|
type = "service"
|
||||||
|
priority = 60
|
||||||
|
|
||||||
group "matrix" {
|
group "matrix" {
|
||||||
count = 1
|
count = 1
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
job "mariadb" {
|
job "mariadb" {
|
||||||
datacenters = ["dc1"]
|
datacenters = ["dc1"]
|
||||||
type = "service"
|
type = "service"
|
||||||
|
priority = 10
|
||||||
|
|
||||||
constraint {
|
constraint {
|
||||||
attribute = "${attr.cpu.arch}"
|
attribute = "${attr.cpu.arch}"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
job "nextcloud" {
|
job "nextcloud" {
|
||||||
datacenters = ["dc1", "belair"]
|
datacenters = ["dc1", "belair"]
|
||||||
type = "service"
|
type = "service"
|
||||||
|
priority = 40
|
||||||
|
|
||||||
constraint {
|
constraint {
|
||||||
attribute = "${attr.cpu.arch}"
|
attribute = "${attr.cpu.arch}"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
job "platoo" {
|
job "platoo" {
|
||||||
datacenters = ["dc1"]
|
datacenters = ["dc1"]
|
||||||
type = "service"
|
type = "service"
|
||||||
|
priority = 10
|
||||||
|
|
||||||
constraint {
|
constraint {
|
||||||
attribute = "${attr.cpu.arch}"
|
attribute = "${attr.cpu.arch}"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
job "science" {
|
job "science" {
|
||||||
datacenters = ["dc1"]
|
datacenters = ["dc1"]
|
||||||
type = "service"
|
type = "service"
|
||||||
|
priority = 10
|
||||||
|
|
||||||
constraint {
|
constraint {
|
||||||
attribute = "${attr.cpu.arch}"
|
attribute = "${attr.cpu.arch}"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
job "seafile" {
|
job "seafile" {
|
||||||
datacenters = ["dc1"]
|
datacenters = ["dc1"]
|
||||||
type = "service"
|
type = "service"
|
||||||
|
priority = 10
|
||||||
|
|
||||||
constraint {
|
constraint {
|
||||||
attribute = "${attr.cpu.arch}"
|
attribute = "${attr.cpu.arch}"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
job "frontend" {
|
job "frontend" {
|
||||||
datacenters = ["dc1"]
|
datacenters = ["dc1"]
|
||||||
type = "service"
|
type = "service"
|
||||||
|
priority = 80
|
||||||
|
|
||||||
group "traefik" {
|
group "traefik" {
|
||||||
task "server" {
|
task "server" {
|
||||||
|
|
Loading…
Reference in a new issue