diff --git a/docs/nomad.md b/docs/nomad.md index 16898d6..6b8a170 100644 --- a/docs/nomad.md +++ b/docs/nomad.md @@ -36,7 +36,7 @@ job "storage-controller" { args = [ "--csi-version=1.2.0", "--csi-name=org.democratic-csi.nfs", - "--driver-config-file=/config/driver-config-file.yaml", + "--driver-config-file=${NOMAD_TASK_DIR}/driver-config-file.yaml", "--log-level=debug", "--csi-mode=controller", "--server-socket=/csi-data/csi.sock", @@ -44,10 +44,6 @@ job "storage-controller" { "--server-port=9000", ] - volumes = [ - "config/driver-config-file.yaml:/config/driver-config-file.yaml", - ] - privileged = true } @@ -58,7 +54,7 @@ job "storage-controller" { } template { - destination = "config/driver-config-file.yaml" + destination = "${NOMAD_TASK_DIR}/driver-config-file.yaml" data = <" { share = "" } } -``` \ No newline at end of file +```