Add stress.nomad to example jobs.
This commit is contained in:
parent
4672345bc2
commit
cd2b647b65
26
example/stress.nomad
Normal file
26
example/stress.nomad
Normal file
@ -0,0 +1,26 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user