Skip to content

Instantly share code, notes, and snippets.

@Gurpartap
Created April 17, 2020 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gurpartap/04524e38240ef7e5577f1a08ab2edd2a to your computer and use it in GitHub Desktop.
Save Gurpartap/04524e38240ef7e5577f1a08ab2edd2a to your computer and use it in GitHub Desktop.
Linode CSI on Nomad 0.11+
job "csi-linode-controllers" {
datacenters = ["dc1"]
type = "service"
group "controllers" {
count = 1
# disable deployments
update {
max_parallel = 0
}
task "plugin" {
driver = "docker"
config {
image = "linode/linode-blockstorage-csi-driver:v0.1.4"
args = [
"--endpoint=unix:///csi/csi.sock",
"--token=YOUR_TOKEN_HERE",
"--url=https://api.linode.com/v4",
"--node=${attr.unique.hostname}",
# "--bs-prefix=nomad",
"--v=2",
]
privileged = true
}
csi_plugin {
id = "csi-linode"
type = "controller"
mount_dir = "/csi"
}
resources {
cpu = 100
memory = 100
}
}
}
}
job "csi-linode-nodes" {
datacenters = ["dc1"]
type = "system"
group "nodes" {
task "plugin" {
driver = "docker"
config {
image = "linode/linode-blockstorage-csi-driver:v0.1.4"
args = [
"--endpoint=unix:///csi/csi.sock",
"--token=YOUR_TOKEN_HERE",
"--url=https://api.linode.com/v4",
"--node=${attr.unique.hostname}",
# "--bs-prefix=nomad",
"--v=2",
]
privileged = true
}
csi_plugin {
id = "csi-linode"
type = "node"
mount_dir = "/csi"
}
resources {
cpu = 100
memory = 100
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment