Traefik & ZooKeeper¶
Configuration Example¶
You can enable the ZooKeeper provider as detailed below:
providers:
zooKeeper: {}[providers.zooKeeper]--providers.zookeeper=trueConfiguration Options¶
| Field | Description | Default | Required |
|---|---|---|---|
providers.providersThrottleDuration |
Minimum amount of time to wait for, after a configuration reload, before taking into account any new configuration refresh event. If multiple events occur within this time, only the most recent one is taken into account, and all others are discarded. This option cannot be set per provider, but the throttling algorithm applies to each of them independently. |
2s | No |
providers.zooKeeper.endpoints |
Defines the endpoint to access ZooKeeper. | "127.0.0.1:2181" | Yes |
providers.zooKeeper.rootKey |
Defines the root key for the configuration. | "traefik" | Yes |
providers.zooKeeper.username |
Defines a username with which to connect to zooKeeper. | "" | No |
providers.zooKeeper.password |
Defines a password for connecting to zooKeeper. | "" | No |
Routing Configuration¶
See the dedicated section in routing.