mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
This PR exposes the following existing`consul-template` configuration options to Nomad jobspec authors in the `{job.group.task.template}` stanza.
- `wait`
It also exposes the following`consul-template` configuration to Nomad operators in the `{client.template}` stanza.
- `max_stale`
- `block_query_wait`
- `consul_retry`
- `vault_retry`
- `wait`
Finally, it adds the following new Nomad-specific configuration to the `{client.template}` stanza that allows Operators to set bounds on what `jobspec` authors configure.
- `wait_bounds`
Co-authored-by: Tim Gross <tgross@hashicorp.com>
Co-authored-by: Michael Schurter <mschurter@hashicorp.com>
32 lines
418 B
HCL
32 lines
418 B
HCL
client {
|
|
enabled = true
|
|
|
|
template {
|
|
max_stale = "300s"
|
|
block_query_wait = "90s"
|
|
|
|
wait {
|
|
min = "2s"
|
|
max = "60s"
|
|
}
|
|
|
|
wait_bounds {
|
|
min = "2s"
|
|
max = "60s"
|
|
}
|
|
|
|
consul_retry {
|
|
attempts = 5
|
|
backoff = "5s"
|
|
max_backoff = "10s"
|
|
}
|
|
|
|
vault_retry {
|
|
attempts = 10
|
|
backoff = "15s"
|
|
max_backoff = "20s"
|
|
}
|
|
}
|
|
|
|
}
|