Compare commits

...

2 Commits

4 changed files with 29 additions and 2 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

View File

@ -4,16 +4,23 @@
instance: democratic-csi
democratic_csi:
# Version to deplou
version: 1.8.4
# The Docker image to use
image: '[[ .docker.repo ]]democratic-csi:1.8.4-1'
image: '[[ .docker.repo ]]democratic-csi:[[ .democratic_csi.version ]]-1'
# The ID of the storage plugin (the protocol will be appended
# Eg org.democratic-csi.iscsi and org.democratic-csi.nfs
plugin_id: org.[[ .instance ]]
# Set a high priority as CSI controllers and nodes are required for a lot of jobs
nomad:
# Set a high priority as CSI controllers and nodes are required for a lot of jobs
priority: 90
constraints:
- operator: distinct_hosts
value: true
# Settings for controllers
controller: