Files
nomad/e2e/consul/input/alloc_restart.hcl
2023-05-30 09:20:32 -05:00

37 lines
580 B
HCL

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
job "alloc-restart" {
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
group "group" {
network {
port "http" {
to = 8080
}
}
service {
name = "alloc-restart-http"
port = "http"
}
task "python" {
driver = "raw_exec"
config {
command = "python3"
args = ["-m", "http.server", "8080", "--directory", "/tmp"]
}
resources {
cpu = 16
memory = 32
}
}
}
}