Trye harder to restart CSI plugins

This commit is contained in:
Daniel Berteaud 2023-12-01 09:57:47 +01:00
parent 6bd203cfa3
commit 4943f24c7b
2 changed files with 14 additions and 0 deletions

View File

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

View File

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