All checks were successful
continuous-integration/drone/push Build is passing
41 lines
764 B
HCL
41 lines
764 B
HCL
# nfs-controller.job
|
|
variable "datacenters" {
|
|
type = list(string)
|
|
description = "List of datacenters to deploy to."
|
|
default = ["nummer5"]
|
|
}
|
|
|
|
job "plugin-nfs-controller" {
|
|
datacenters = var.datacenters
|
|
node_pool = "sys"
|
|
priority = 100
|
|
|
|
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 = 50
|
|
memory = 15
|
|
}
|
|
}
|
|
}
|
|
}
|