2020-11-13 17:26:04 +00:00
|
|
|
job "digitalocean" {
|
|
|
|
|
|
|
|
datacenters = ["dc1"]
|
2021-03-09 19:17:25 +00:00
|
|
|
type = "system"
|
2020-11-13 17:26:04 +00:00
|
|
|
|
|
|
|
group "csi" {
|
|
|
|
task "plugin" {
|
|
|
|
driver = "docker"
|
|
|
|
|
|
|
|
config {
|
|
|
|
image = "digitalocean/do-csi-plugin:v2.1.1"
|
|
|
|
args = [
|
2022-03-21 15:48:47 +00:00
|
|
|
"--endpoint=${CSI_ENDPOINT}",
|
2020-11-13 17:26:04 +00:00
|
|
|
"--token=${token}",
|
|
|
|
"--url=https://api.digitalocean.com/",
|
|
|
|
]
|
|
|
|
|
|
|
|
privileged = true
|
|
|
|
}
|
|
|
|
|
|
|
|
csi_plugin {
|
|
|
|
id = "digitalocean"
|
|
|
|
type = "monolith"
|
|
|
|
mount_dir = "/csi"
|
|
|
|
}
|
|
|
|
|
|
|
|
resources {
|
|
|
|
cpu = 500
|
|
|
|
memory = 256
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|