Fix confusing batch job example
This commit is contained in:
parent
020b70c081
commit
cf09c2af24
|
@ -148,8 +148,8 @@ job "docs" {
|
|||
|
||||
### Batch Job
|
||||
|
||||
This example job executes the `uptime` command across all Nomad clients in the
|
||||
fleet, as long as those machines are running Linux.
|
||||
This example job executes the `uptime` command on 10 Nomad clients in the fleet,
|
||||
restricting the eligble nodes to Linux machines.
|
||||
|
||||
```hcl
|
||||
job "docs" {
|
||||
|
@ -163,15 +163,12 @@ job "docs" {
|
|||
}
|
||||
|
||||
group "example" {
|
||||
count = 10
|
||||
task "uptime" {
|
||||
driver = "exec"
|
||||
config {
|
||||
command = "uptime"
|
||||
}
|
||||
|
||||
resources {
|
||||
cpu = 20
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -204,10 +201,6 @@ job "docs" {
|
|||
vault {
|
||||
policies = ["secret-readonly"]
|
||||
}
|
||||
|
||||
resources {
|
||||
cpu = 20
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue