All checks were successful
continuous-integration/drone/push Build is passing
44 lines
789 B
HCL
44 lines
789 B
HCL
#nfs-nodes.job
|
|
variable "datacenters" {
|
|
type = list(string)
|
|
description = "List of datacenters to deploy to."
|
|
default = ["nummer5"]
|
|
}
|
|
|
|
job "plugin-nfs-nodes" {
|
|
datacenters = var.datacenters
|
|
node_pool = "all"
|
|
priority = 100
|
|
type = "system"
|
|
|
|
group "nodes" {
|
|
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",
|
|
]
|
|
|
|
privileged = true
|
|
}
|
|
|
|
csi_plugin {
|
|
id = "nfs"
|
|
type = "node"
|
|
mount_dir = "/csi"
|
|
}
|
|
|
|
resources {
|
|
cpu = 50
|
|
memory = 10
|
|
}
|
|
}
|
|
}
|
|
}
|