mirror of
https://github.com/coredns/coredns.git
synced 2025-11-27 14:14:02 -05:00
plugin/nomad: Support service filtering (#7724)
Signed-off-by: Olli Janatuinen <olli.janatuinen@gmail.com>
This commit is contained in:
@@ -80,6 +80,7 @@ With only the plugin specified, the *nomad* plugin will default to `service.noma
|
||||
~~~ txt
|
||||
nomad [ZONE] {
|
||||
address URL
|
||||
filter FILTER
|
||||
token TOKEN
|
||||
ttl DURATION
|
||||
}
|
||||
@@ -87,6 +88,8 @@ nomad [ZONE] {
|
||||
|
||||
* `address` The address where a Nomad agent (server) is available. **URL** defaults to `http://127.0.0.1:4646`.
|
||||
|
||||
* `filter` allows you to filter Nomad services. **FILTER** defaults to `""`. Uses [filtering](https://developer.hashicorp.com/nomad/api-docs#filtering) syntax.
|
||||
|
||||
* `token` The SecretID of an ACL token to use to authenticate API requests with if the Nomad cluster has ACL enabled. **TOKEN** defaults to `""`.
|
||||
|
||||
* `ttl` allows you to set a custom TTL for responses. **DURATION** defaults to `30 seconds`. The minimum TTL allowed is `0` seconds, and the maximum is capped at `3600` seconds. Setting TTL to 0 will prevent records from being cached. The unit for the value is seconds.
|
||||
|
||||
Reference in New Issue
Block a user