27 lines
395 B
HCL
27 lines
395 B
HCL
job "stress" {
|
|
datacenters = ["dc1"]
|
|
|
|
group "stress-group" {
|
|
task "stress-task" {
|
|
driver = "containerd-driver"
|
|
|
|
config {
|
|
image = "docker.io/shm32/stress:1.0"
|
|
}
|
|
|
|
restart {
|
|
attempts = 5
|
|
delay = "30s"
|
|
}
|
|
|
|
resources {
|
|
cpu = 500
|
|
memory = 256
|
|
network {
|
|
mbits = 10
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|