2024-01-13 17:35:18 +00:00
|
|
|
job "csi-nfs-nodes" {
|
|
|
|
datacenters = ["homelab","hetzner"]
|
|
|
|
type = "system"
|
|
|
|
group "csi-nfs-nodes" {
|
|
|
|
task "plugin" {
|
|
|
|
driver = "docker"
|
|
|
|
config {
|
2024-08-03 12:45:22 +00:00
|
|
|
image = "registry.k8s.io/sig-storage/nfsplugin:v4.7.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"
|
|
|
|
]
|
|
|
|
# node plugins must run as privileged jobs because they
|
|
|
|
# mount disks to the host
|
|
|
|
privileged = true
|
|
|
|
}
|
|
|
|
csi_plugin {
|
|
|
|
id = "nfs"
|
|
|
|
type = "node"
|
|
|
|
mount_dir = "/csi"
|
|
|
|
}
|
|
|
|
resources {
|
|
|
|
memory = 50
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|