Update rendered example and add distinct host constraint

This commit is contained in:
Daniel Berteaud 2024-02-26 19:49:41 +01:00
parent c27c53fb3a
commit 33daacaf00
3 changed files with 20 additions and 0 deletions

View File

@ -10,6 +10,8 @@ job "[[ .instance ]]-controller" {
count = [[ $c.count ]]
[[ template "common/constraints" $c ]]
restart {
interval = "5m"
attempts = 30

View File

@ -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

View File

@ -2,6 +2,7 @@ job "democratic-csi-node" {
type = "system"
datacenters = ["dc1"]
region = "global"
priority = 90