Setup mounting smb shares as volumes using csi
This commit is contained in:
31
2-nomad-config/csi-smb.nomad.hcl
Normal file
31
2-nomad-config/csi-smb.nomad.hcl
Normal file
@@ -0,0 +1,31 @@
|
||||
job "csi-smb" {
|
||||
type = "system"
|
||||
|
||||
group "smb" {
|
||||
task "plugin" {
|
||||
driver = "docker"
|
||||
|
||||
config {
|
||||
image = "mcr.microsoft.com/k8s/csi/smb-csi:v1.7.0"
|
||||
args = [
|
||||
"--v=5",
|
||||
"--nodeid=${attr.unique.hostname}",
|
||||
"--endpoint=unix:///csi/csi.sock",
|
||||
"--drivername=smb.csi.k8s.io"
|
||||
]
|
||||
privileged = true
|
||||
}
|
||||
|
||||
csi_plugin {
|
||||
id = "smb"
|
||||
type = "node"
|
||||
mount_dir = "/csi"
|
||||
}
|
||||
|
||||
resources {
|
||||
cpu = 100
|
||||
memory = 50
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user