update deployment plans
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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/"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user