open-nomad/demo/csi/digitalocean/volume-job.nomad

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
625 B
Plaintext
Raw Normal View History

job "example" {
datacenters = ["dc1"]
group "cache" {
volume "test" {
type = "csi"
source = "${volume_id}"
access_mode = "single-node-writer"
attachment_mode = "block-device"
}
task "redis" {
driver = "docker"
config {
image = "redis:7"
port_map {
db = 6379
}
}
volume_mount {
volume = "test"
destination = "/test"
}
resources {
cpu = 500
memory = 256
network {
mbits = 14
port "db" {}
}
}
}
}
}