Compare commits
2 Commits
5dfb82fb26
...
33daacaf00
Author | SHA1 | Date |
---|---|---|
Daniel Berteaud | 33daacaf00 | |
Daniel Berteaud | c27c53fb3a |
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue