Update democratic-csi-iscsi-node.hcl
Adding suggested additional config to help with iscsi volumes being formatted each time they're mounted re: #215
This commit is contained in:
parent
05e9d93284
commit
fcaa64e612
|
|
@ -11,6 +11,10 @@ job "democratic-csi-iscsi-node" {
|
||||||
|
|
||||||
env {
|
env {
|
||||||
CSI_NODE_ID = "${attr.unique.hostname}"
|
CSI_NODE_ID = "${attr.unique.hostname}"
|
||||||
|
|
||||||
|
# if you run into a scenario where your iscsi volumes are zeroed each time they are mounted,
|
||||||
|
# you can configure the fs detection system used with the following envvar:
|
||||||
|
#FILESYSTEM_TYPE_DETECTION_STRATEGY = "blkid"
|
||||||
}
|
}
|
||||||
|
|
||||||
config {
|
config {
|
||||||
|
|
@ -38,6 +42,15 @@ job "democratic-csi-iscsi-node" {
|
||||||
source = "/"
|
source = "/"
|
||||||
readonly=false
|
readonly=false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# if you run into a scenario where your iscsi volumes are zeroed each time they are mounted,
|
||||||
|
# you can try uncommenting the following additional mount block:
|
||||||
|
#mount {
|
||||||
|
# type = "bind"
|
||||||
|
# target = "/run/udev"
|
||||||
|
# source = "/run/udev"
|
||||||
|
# readonly = true
|
||||||
|
#}
|
||||||
}
|
}
|
||||||
|
|
||||||
template {
|
template {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue