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