nomad to the max

This commit is contained in:
2023-09-19 19:49:36 +02:00
commit e6d03c8589
15 changed files with 572 additions and 0 deletions

38
_sys/nfs-controller.hcl Normal file
View 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
}
}
}
}