Files
nomad/e2e/scheduler_system/input/system_canary_v1_100.nomad.hcl

47 lines
748 B
HCL

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
job "system_job" {
datacenters = ["dc1", "dc2"]
type = "system"
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
group "system_job_group" {
update {
max_parallel = 1
min_healthy_time = "1s"
healthy_deadline = "1m"
auto_revert = false
canary = 100
}
restart {
attempts = 10
interval = "1m"
delay = "2s"
mode = "delay"
}
task "system_task" {
driver = "docker"
config {
image = "busybox:1"
command = "/bin/sh"
args = ["-c", "sleep 150000"]
}
env {
version = "1"
}
}
}
}