Trye harder to restart CSI plugins
This commit is contained in:
parent
6bd203cfa3
commit
4943f24c7b
|
@ -10,6 +10,13 @@ job "[[ .democratic_csi.instance ]]-controller" {
|
|||
|
||||
count = [[ $.democratic_csi.controller.count ]]
|
||||
|
||||
restart {
|
||||
interval = "5m"
|
||||
attempts = 30
|
||||
delay = "10s"
|
||||
mode = "delay"
|
||||
}
|
||||
|
||||
task "[[ $proto ]]-controller" {
|
||||
|
||||
driver = [[ $c.nomad.driver | toJSON ]]
|
||||
|
|
|
@ -9,6 +9,13 @@ job "[[ .democratic_csi.instance ]]-node" {
|
|||
|
||||
group "[[ $proto ]]-node" {
|
||||
|
||||
restart {
|
||||
interval = "5m"
|
||||
attempts = 30
|
||||
delay = "10s"
|
||||
mode = "delay"
|
||||
}
|
||||
|
||||
[[- if eq $proto "iscsi" ]]
|
||||
volume "host_root" {
|
||||
type = [[ $.democratic_csi.node.volumes.host_root.type | toJSON ]]
|
||||
|
|
Loading…
Reference in New Issue