blob: 3ad09f788323aa98a31fc9c9dc6619f2971a6184 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
job "seaweedfs-csi" {
datacenters = ["dc1"]
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=seaweedfs-filer.service.consul: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
}
}
}
}
|