mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
42 lines
573 B
HCL
42 lines
573 B
HCL
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
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
|
|
}
|
|
}
|
|
}
|
|
}
|