Skip to content

Commit

Permalink
feat(csi): add csi hostpath plugin
Browse files Browse the repository at this point in the history
Signed-off-by: Bruce Becker <[email protected]>
  • Loading branch information
brucellino committed Jun 17, 2022
1 parent e2e41ef commit d1e91ad
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions csi-hostpath.nomad
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Add the csi host path plugin
job "plugin-csi-hostpath-controller" {
datacenters = ["dc1"]
type = "system"
group "controller" {
task "plugin" {
resources {
cpu = 10 # 10 MHz
memory = 25 # 25MB
}
driver = "raw_exec"
config {
command = "local/csi-hostpathplugin"
args = [
"--drivername=csi-hostpath",
"--v=5",
"--endpoint=${CSI_ENDPOINT}",
"--nodeid=node-${NOMAD_ALLOC_INDEX}"
]
}
artifact {
source = "http://minio-api:9000/csi/csi-driver-host-path/bin/hostpathplugin"
destination = "local/csi-hostpathplugin"
mode = "file"
}


csi_plugin {
id = "csi-hostpath"
type = "monolith"
mount_dir = "/data/csi"
}
}
}
}

0 comments on commit d1e91ad

Please sign in to comment.