open-nomad/e2e/metrics/input/helloworld.nomad

50 lines
834 B
Plaintext
Raw Normal View History

2019-03-08 17:56:02 +00:00
job "hello" {
datacenters = ["dc1"]
update {
max_parallel = 1
min_healthy_time = "15s"
auto_revert = true
}
group "hello" {
count = 3
task "hello" {
2019-03-11 04:50:21 +00:00
driver = "raw_exec"
2019-03-08 17:56:02 +00:00
config {
command = "local/hello"
}
artifact {
source = "https://s3.amazonaws.com/nomad-community-demo/hellov1"
destination = "local/hello"
mode = "file"
}
resources {
cpu = 500
memory = 256
network {
mbits = 10
port "web" {}
}
}
service {
name = "hello"
tags = ["urlprefix-/"]
port = "web"
check {
name = "alive"
type = "http"
path = "/"
interval = "10s"
timeout = "2s"
}
}
}
}
}