nomad to the max
This commit is contained in:
38
_sys/nfs-controller.hcl
Normal file
38
_sys/nfs-controller.hcl
Normal file
@@ -0,0 +1,38 @@
|
||||
# nfs-controller.job
|
||||
variable "datacenters" {
|
||||
type = list(string)
|
||||
description = "List of datacenters to deploy to."
|
||||
default = ["nummer5"]
|
||||
}
|
||||
|
||||
job "plugin-nfs-controller" {
|
||||
datacenters = var.datacenters
|
||||
|
||||
group "controller" {
|
||||
task "plugin" {
|
||||
driver = "podman"
|
||||
|
||||
config {
|
||||
image = "mcr.microsoft.com/k8s/csi/nfs-csi:latest"
|
||||
|
||||
args = [
|
||||
"--endpoint=unix://csi/csi.sock",
|
||||
"--nodeid=${attr.unique.hostname}",
|
||||
"--logtostderr",
|
||||
"-v=5",
|
||||
]
|
||||
}
|
||||
|
||||
csi_plugin {
|
||||
id = "nfs"
|
||||
type = "controller"
|
||||
mount_dir = "/csi"
|
||||
}
|
||||
|
||||
resources {
|
||||
cpu = 250
|
||||
memory = 128
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user