open-nomad/e2e/csi/input/use-efs-volume-read.nomad
2020-04-06 11:57:59 -04:00

39 lines
701 B
HCL

# a job that mounts the EFS volume and sleeps, so that we can
# read its mounted file system remotely
job "use-efs-volume" {
datacenters = ["dc1"]
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
group "group" {
volume "test" {
type = "csi"
source = "efs-vol0"
}
task "task" {
driver = "docker"
config {
image = "busybox:1"
command = "/bin/sh"
args = ["-c", "sleep 3600"]
}
volume_mount {
volume = "test"
destination = "${NOMAD_TASK_DIR}/test"
read_only = true
}
resources {
cpu = 500
memory = 128
}
}
}
}