Update rendered example and add distinct host constraint
This commit is contained in:
parent
c27c53fb3a
commit
33daacaf00
|
@ -10,6 +10,8 @@ job "[[ .instance ]]-controller" {
|
|||
|
||||
count = [[ $c.count ]]
|
||||
|
||||
[[ template "common/constraints" $c ]]
|
||||
|
||||
restart {
|
||||
interval = "5m"
|
||||
attempts = 30
|
||||
|
|
|
@ -2,6 +2,7 @@ job "democratic-csi-controller" {
|
|||
|
||||
|
||||
datacenters = ["dc1"]
|
||||
region = "global"
|
||||
priority = 90
|
||||
|
||||
|
||||
|
@ -9,6 +10,14 @@ job "democratic-csi-controller" {
|
|||
|
||||
count = 1
|
||||
|
||||
|
||||
|
||||
constraint {
|
||||
operator = "distinct_hosts"
|
||||
value = "true"
|
||||
}
|
||||
|
||||
|
||||
restart {
|
||||
interval = "5m"
|
||||
attempts = 30
|
||||
|
@ -133,6 +142,14 @@ _EOF
|
|||
|
||||
count = 1
|
||||
|
||||
|
||||
|
||||
constraint {
|
||||
operator = "distinct_hosts"
|
||||
value = "true"
|
||||
}
|
||||
|
||||
|
||||
restart {
|
||||
interval = "5m"
|
||||
attempts = 30
|
||||
|
|
|
@ -2,6 +2,7 @@ job "democratic-csi-node" {
|
|||
|
||||
type = "system"
|
||||
datacenters = ["dc1"]
|
||||
region = "global"
|
||||
priority = 90
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue