2024-01-13 17:35:18 +00:00
|
|
|
job "csi-nfs-controller" {
|
|
|
|
datacenters = ["homelab"]
|
|
|
|
group "controller" {
|
|
|
|
task "csi-nfs-controller" {
|
|
|
|
driver = "docker"
|
|
|
|
config {
|
2024-03-29 20:14:24 +00:00
|
|
|
image = "registry.k8s.io/sig-storage/nfsplugin:v4.6.0"
|
2024-01-13 17:35:18 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|