update deployment plans

This commit is contained in:
Francisco Gaona
2023-04-18 15:52:15 -05:00
parent 2e31e03ede
commit d63f7922db
2 changed files with 13 additions and 9 deletions

View File

@@ -4,8 +4,9 @@ job "neogenia" {
type = "service"
constraint {
attribute = "${meta.group}"
value = "contabo"
attribute = "${node.unique.name}"
operator = "!="
value = "mars-nomad"
}
group "ingress-group" {
@@ -74,7 +75,7 @@ job "neogenia" {
group "neogenia" {
count = 3
count = 1
update {
max_parallel = 1

View File

@@ -3,31 +3,34 @@ job "docker-registry" {
datacenters = ["dc1"]
constraint {
attribute = "${meta.group}"
value = "contabo"
attribute = "${node.unique.name}"
value = "saturn-nomad"
}
group "registry" {
count = 1
volume "registry" {
/*volume "registry" {
type = "host"
read_only = false
source = "registry"
}
}*/
task "registry" {
driver = "docker"
volume_mount {
/*volume_mount {
volume = "registry"
destination = "/var/lib/registry/"
read_only = false
}
}*/
config {
image = "registry:2"
ports = ["registry-port"]
volumes = [
"/root/nomadvolumes/registry:/var/lib/registry/"
]
}
}