ansible-hashistack/roles/nomad/templates/nfs-controller.nomad.j2

28 lines
604 B
Plaintext
Raw Permalink Normal View History

2023-09-25 13:55:32 +02:00
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
}
}
}
}