ConsulCatalog StrictChecks
This commit is contained in:
parent
c5808af4d9
commit
0e89a6bec7
8 changed files with 521 additions and 12 deletions
|
@ -714,6 +714,32 @@ providers:
|
|||
# ...
|
||||
```
|
||||
|
||||
### `strictChecks`
|
||||
|
||||
_Optional, Default="passing,warning"_
|
||||
|
||||
Define which [Consul Service health checks](https://developer.hashicorp.com/consul/docs/services/usage/checks#define-initial-health-check-status) are allowed to take on traffic.
|
||||
|
||||
```yaml tab="File (YAML)"
|
||||
providers:
|
||||
consulCatalog:
|
||||
strictChecks:
|
||||
- "passing"
|
||||
- "warning"
|
||||
# ...
|
||||
```
|
||||
|
||||
```toml tab="File (TOML)"
|
||||
[providers.consulCatalog]
|
||||
strictChecks = ["passing", "warning"]
|
||||
# ...
|
||||
```
|
||||
|
||||
```bash tab="CLI"
|
||||
--providers.consulcatalog.strictChecks=passing,warning
|
||||
# ...
|
||||
```
|
||||
|
||||
### `watch`
|
||||
|
||||
_Optional, Default=false_
|
||||
|
|
|
@ -537,6 +537,9 @@ Name of the Traefik service in Consul Catalog (needs to be registered via the or
|
|||
`--providers.consulcatalog.stale`:
|
||||
Use stale consistency for catalog reads. (Default: ```false```)
|
||||
|
||||
`--providers.consulcatalog.strictchecks`:
|
||||
A list of service health statuses to allow taking traffic. (Default: ```passing, warning```)
|
||||
|
||||
`--providers.consulcatalog.watch`:
|
||||
Watch Consul API events. (Default: ```false```)
|
||||
|
||||
|
|
|
@ -513,6 +513,9 @@ Name of the Traefik service in Consul Catalog (needs to be registered via the or
|
|||
`TRAEFIK_PROVIDERS_CONSULCATALOG_STALE`:
|
||||
Use stale consistency for catalog reads. (Default: ```false```)
|
||||
|
||||
`TRAEFIK_PROVIDERS_CONSULCATALOG_STRICTCHECKS`:
|
||||
A list of service health statuses to allow taking traffic. (Default: ```passing, warning```)
|
||||
|
||||
`TRAEFIK_PROVIDERS_CONSULCATALOG_WATCH`:
|
||||
Watch Consul API events. (Default: ```false```)
|
||||
|
||||
|
|
|
@ -161,6 +161,7 @@
|
|||
connectByDefault = true
|
||||
serviceName = "foobar"
|
||||
watch = true
|
||||
strictChecks = ["foobar", "foobar"]
|
||||
namespaces = ["foobar", "foobar"]
|
||||
[providers.consulCatalog.endpoint]
|
||||
address = "foobar"
|
||||
|
|
|
@ -192,6 +192,9 @@ providers:
|
|||
connectByDefault: true
|
||||
serviceName: foobar
|
||||
watch: true
|
||||
strictChecks:
|
||||
- foobar
|
||||
- foobar
|
||||
namespaces:
|
||||
- foobar
|
||||
- foobar
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue