2021-04-09 14:33:58 +00:00
|
|
|
job "csi-plugin" {
|
|
|
|
type = "system"
|
|
|
|
datacenters = ["dc1"]
|
|
|
|
|
|
|
|
group "csi" {
|
|
|
|
|
|
|
|
task "plugin" {
|
|
|
|
driver = "docker"
|
|
|
|
|
|
|
|
config {
|
|
|
|
image = "quay.io/k8scsi/hostpathplugin:v1.2.0"
|
|
|
|
|
|
|
|
args = [
|
|
|
|
"--drivername=csi-hostpath",
|
|
|
|
"--v=5",
|
2022-03-21 15:48:47 +00:00
|
|
|
"--endpoint=${CSI_ENDPOINT}",
|
2021-04-09 14:33:58 +00:00
|
|
|
"--nodeid=node-${NOMAD_ALLOC_INDEX}",
|
|
|
|
]
|
|
|
|
|
|
|
|
privileged = true
|
|
|
|
}
|
|
|
|
|
|
|
|
csi_plugin {
|
|
|
|
id = "hostpath-plugin0"
|
|
|
|
type = "monolith" #node" # doesn't support Controller RPCs
|
|
|
|
mount_dir = "/csi"
|
|
|
|
}
|
|
|
|
|
|
|
|
resources {
|
|
|
|
cpu = 256
|
|
|
|
memory = 128
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|