open-nomad/demo/csi/hostpath/plugin.nomad
Tim Gross cf6146b2e5 CSI: demo for hostpath plugin
A demo for the CSI hostpath plugin, used primarily for development
purposes. This reproduction has been used for testing during our CSI
implementation work, and this changeset makes that public.
2021-04-09 10:46:58 -04:00

36 lines
661 B
HCL

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",
"--endpoint=unix://csi/csi.sock",
"--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
}
}
}
}