Created
April 17, 2020 23:00
-
-
Save Gurpartap/04524e38240ef7e5577f1a08ab2edd2a to your computer and use it in GitHub Desktop.
Linode CSI on Nomad 0.11+
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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