mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 19:35:41 +03:00
34 lines
587 B
HCL
34 lines
587 B
HCL
job "digitalocean" {
|
|
|
|
datacenters = ["dc1"]
|
|
type = "system"
|
|
|
|
group "csi" {
|
|
task "plugin" {
|
|
driver = "docker"
|
|
|
|
config {
|
|
image = "digitalocean/do-csi-plugin:v2.1.1"
|
|
args = [
|
|
"--endpoint=unix://csi/csi.sock",
|
|
"--token=${token}",
|
|
"--url=https://api.digitalocean.com/",
|
|
]
|
|
|
|
privileged = true
|
|
}
|
|
|
|
csi_plugin {
|
|
id = "digitalocean"
|
|
type = "monolith"
|
|
mount_dir = "/csi"
|
|
}
|
|
|
|
resources {
|
|
cpu = 500
|
|
memory = 256
|
|
}
|
|
}
|
|
}
|
|
}
|