44 lines
721 B
HCL
44 lines
721 B
HCL
job "juicefs-controller" {
|
|
datacenters = ["dc1"]
|
|
type = "system"
|
|
|
|
group "controller" {
|
|
task "plugin" {
|
|
driver = "podman"
|
|
|
|
config {
|
|
image = "juicedata/juicefs-csi-driver:v0.14.1"
|
|
args = [
|
|
"--endpoint=unix://csi/csi.sock",
|
|
"--logtostderr",
|
|
"--nodeid=${node.unique.id}",
|
|
"--v=5",
|
|
"--by-process=true"
|
|
]
|
|
privileged = true
|
|
}
|
|
|
|
csi_plugin {
|
|
id = "juicefs-nfs"
|
|
type = "controller"
|
|
mount_dir = "/csi"
|
|
}
|
|
|
|
resources {
|
|
cpu = 100
|
|
memory = 512
|
|
}
|
|
|
|
env {
|
|
POD_NAME = "csi-controller"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|