27 lines
589 B
HCL
27 lines
589 B
HCL
job "csi-nfs-controller" {
|
|
datacenters = ["homelab"]
|
|
group "controller" {
|
|
task "csi-nfs-controller" {
|
|
driver = "docker"
|
|
config {
|
|
image = "registry.k8s.io/sig-storage/nfsplugin:v4.6.0"
|
|
args = [
|
|
"--v=5",
|
|
"--nodeid=${attr.unique.hostname}",
|
|
"--endpoint=unix:///csi/csi.sock",
|
|
"--drivername=nfs.csi.k8s.io"
|
|
]
|
|
}
|
|
csi_plugin {
|
|
id = "nfs"
|
|
type = "controller"
|
|
mount_dir = "/csi"
|
|
}
|
|
resources {
|
|
memory = 32
|
|
cpu = 100
|
|
}
|
|
}
|
|
}
|
|
}
|