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

52 lines
863 B
Plaintext
Raw Normal View History

2019-03-08 17:56:02 +00:00
job "hello" {
datacenters = ["dc1"]
update {
2019-10-11 12:00:05 +00:00
max_parallel = 1
2019-03-08 17:56:02 +00:00
min_healthy_time = "15s"
2019-10-11 12:00:05 +00:00
auto_revert = true
2019-03-08 17:56:02 +00:00
}
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 {
2019-10-11 12:00:05 +00:00
source = "https://nomad-community-demo.s3.amazonaws.com/hellov1"
2019-03-08 17:56:02 +00:00
destination = "local/hello"
2019-10-11 12:00:05 +00:00
mode = "file"
2019-03-08 17:56:02 +00:00
}
resources {
cpu = 500
memory = 256
2019-10-11 12:00:05 +00:00
2019-03-08 17:56:02 +00:00
network {
mbits = 10
2019-10-11 12:00:05 +00:00
port "web" {}
2019-03-08 17:56:02 +00:00
}
}
service {
name = "hello"
tags = ["urlprefix-hello/"]
2019-03-08 17:56:02 +00:00
port = "web"
2019-10-11 12:00:05 +00:00
2019-03-08 17:56:02 +00:00
check {
name = "alive"
type = "http"
path = "/"
interval = "10s"
timeout = "2s"
}
}
}
}
}