Merge pull request #109 from mister2d/patch-1

Update nomad.md
This commit is contained in:
Travis Glenn Hansen
2021-08-19 05:13:22 -05:00
committed by GitHub
+5 -13
View File
@@ -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 = <<EOH
config
@@ -91,16 +87,12 @@ job "storage-node" {
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=node",
"--server-socket=/csi-data/csi.sock",
]
volumes = [
"config/driver-config-file.yaml:/config/driver-config-file.yaml",
]
privileged = true
}
@@ -111,7 +103,7 @@ job "storage-node" {
}
template {
destination = "/config/driver-config-file.yaml"
destination = "${NOMAD_TASK_DIR}/driver-config-file.yaml"
data = <<EOH
config
@@ -178,4 +170,4 @@ resource "nomad_volume" "<volume name>" {
share = "<share>"
}
}
```
```