Add seaweedfs CSI module.

This commit is contained in:
2023-07-07 13:28:24 +01:00
parent c8278b0fad
commit 78e635f922

52
storage/seaweedfs-csi.hcl Normal file
View File

@@ -0,0 +1,52 @@
job "seaweedfs-csi" {
datacenters = ["alo"]
type = "system"
update {
max_parallel = 1
stagger = "60s"
}
group "nodes" {
ephemeral_disk {
migrate = false
size = 10240
sticky = false
}
task "plugin" {
driver = "docker"
config {
image = "chrislusf/seaweedfs-csi-driver:latest"
force_pull = "true"
network_mode = "host"
args = [
"--endpoint=unix://csi/csi.sock",
"--filer=localhost:8888",
"--nodeid=${node.unique.name}",
"--cacheCapacityMB=256",
"--cacheDir=${NOMAD_TASK_DIR}/cache_dir",
]
privileged = true
}
csi_plugin {
id = "seaweedfs"
type = "monolith"
mount_dir = "/csi"
}
resources {
cpu = 512
memory = 1024
memory_max = 3072 # W need to have memory oversubscription enabled
}
}
}
}