2019-06-21 07:24:04 +00:00
|
|
|
# Enable Rancher Provider.
|
2019-07-01 09:30:05 +00:00
|
|
|
[providers.rancher]
|
2019-06-21 07:24:04 +00:00
|
|
|
|
|
|
|
# Expose Rancher services by default in Traefik.
|
2019-07-01 09:30:05 +00:00
|
|
|
exposedByDefault = true
|
2019-06-21 07:24:04 +00:00
|
|
|
|
|
|
|
# Enable watch Rancher changes.
|
2019-07-01 09:30:05 +00:00
|
|
|
watch = true
|
2019-06-21 07:24:04 +00:00
|
|
|
|
|
|
|
# Filter services with unhealthy states and inactive states.
|
2019-07-01 09:30:05 +00:00
|
|
|
enableServiceHealthFilter = true
|
2019-06-21 07:24:04 +00:00
|
|
|
|
|
|
|
# Defines the polling interval (in seconds).
|
2019-07-01 09:30:05 +00:00
|
|
|
refreshSeconds = true
|
2019-06-21 07:24:04 +00:00
|
|
|
|
|
|
|
# Poll the Rancher metadata service for changes every `rancher.refreshSeconds`, which is less accurate
|
2019-07-01 09:30:05 +00:00
|
|
|
intervalPoll = false
|
2019-06-21 07:24:04 +00:00
|
|
|
|
|
|
|
# Prefix used for accessing the Rancher metadata service
|
2019-07-01 09:30:05 +00:00
|
|
|
prefix = "/latest"
|