2e2c578298
This PR refactors some old PID isolation tests to make use of the e2e/v3 packages. Should be quite a bit easier to read. Adds 'alloc exec' capability to the jobs3 package.
42 lines
572 B
HCL
42 lines
572 B
HCL
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
job "alloc_exec" {
|
|
|
|
constraint {
|
|
attribute = "${attr.kernel.name}"
|
|
value = "linux"
|
|
}
|
|
|
|
group "group" {
|
|
|
|
update {
|
|
min_healthy_time = "2s"
|
|
}
|
|
|
|
reschedule {
|
|
attempts = 0
|
|
unlimited = false
|
|
}
|
|
|
|
restart {
|
|
attempts = 0
|
|
mode = "fail"
|
|
}
|
|
|
|
task "sleep" {
|
|
driver = "exec"
|
|
|
|
config {
|
|
command = "sleep"
|
|
args = ["infinity"]
|
|
}
|
|
|
|
resources {
|
|
cpu = 10
|
|
memory = 16
|
|
}
|
|
}
|
|
}
|
|
}
|