From fcaa64e6124895abf0dd5e6c317dda4e70e9547d Mon Sep 17 00:00:00 2001 From: Daniel Carbone Date: Sun, 14 May 2023 20:05:40 -0500 Subject: [PATCH] Update democratic-csi-iscsi-node.hcl Adding suggested additional config to help with iscsi volumes being formatted each time they're mounted re: #215 --- docs/Nomad/examples/democratic-csi-iscsi-node.hcl | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/Nomad/examples/democratic-csi-iscsi-node.hcl b/docs/Nomad/examples/democratic-csi-iscsi-node.hcl index c5817c5..4bf753c 100644 --- a/docs/Nomad/examples/democratic-csi-iscsi-node.hcl +++ b/docs/Nomad/examples/democratic-csi-iscsi-node.hcl @@ -11,6 +11,10 @@ job "democratic-csi-iscsi-node" { env { 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 { @@ -38,6 +42,15 @@ job "democratic-csi-iscsi-node" { source = "/" 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 {