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

51 lines
852 B
Plaintext
Raw Normal View History

job "helloworld" {
2019-03-08 17:56:02 +00:00
datacenters = ["dc1"]
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
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-11-19 15:36:41 +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"
}
}
}
}
}