open-nomad/demo/csi/digitalocean/plugin.nomad
Tim Gross e687a21da9
CSI: set plugin CSI_ENDPOINT env var only if unset by user (#12257)
* Use unix:// prefix for CSI_ENDPOINT variable by default
* Some plugins have strict validation over the format of the
  `CSI_ENDPOINT` variable, and unfortunately not all plugins
  agree. Allow the user to override the `CSI_ENDPOINT` to workaround
  those cases.
* Update all demos and tests with CSI_ENDPOINT
2022-03-21 11:48:47 -04:00

34 lines
583 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=${CSI_ENDPOINT}",
"--token=${token}",
"--url=https://api.digitalocean.com/",
]
privileged = true
}
csi_plugin {
id = "digitalocean"
type = "monolith"
mount_dir = "/csi"
}
resources {
cpu = 500
memory = 256
}
}
}
}