traefik/docs/configuration/backends/zookeeper.md

62 lines
1.2 KiB
Markdown
Raw Normal View History

# Zookeeper Backend
2017-08-25 19:32:33 +00:00
2017-09-11 17:10:04 +00:00
Træfik can be configured to use Zookeeper as a backend configuration.
2017-08-25 19:32:33 +00:00
```toml
################################################################
# Zookeeper configuration backend
################################################################
2017-09-11 17:10:04 +00:00
# Enable Zookeeperconfiguration backend.
2017-08-25 19:32:33 +00:00
[zookeeper]
2017-09-11 17:10:04 +00:00
# Zookeeper server endpoint.
2017-08-25 19:32:33 +00:00
#
# Required
2017-09-11 17:10:04 +00:00
# Default: "127.0.0.1:2181"
2017-08-25 19:32:33 +00:00
#
endpoint = "127.0.0.1:2181"
2017-09-11 17:10:04 +00:00
# Enable watch Zookeeper changes.
2017-08-25 19:32:33 +00:00
#
# Optional
2017-09-11 17:10:04 +00:00
# Default: true
2017-08-25 19:32:33 +00:00
#
watch = true
# Prefix used for KV store.
#
# Optional
2017-09-11 17:10:04 +00:00
# Default: "/traefik"
2017-08-25 19:32:33 +00:00
#
2017-09-11 17:10:04 +00:00
prefix = "/traefik"
2017-08-25 19:32:33 +00:00
2017-09-11 17:10:04 +00:00
# Override default configuration template.
# For advanced users :)
2017-08-25 19:32:33 +00:00
#
# Optional
#
# filename = "zookeeper.tmpl"
2017-09-11 17:10:04 +00:00
# Use Zookeeper user/pass authentication.
#
# Optional
#
# username = foo
# password = bar
# Enable Zookeeper TLS connection.
#
# Optional
#
# [zookeeper.tls]
# ca = "/etc/ssl/ca.crt"
# cert = "/etc/ssl/zookeeper.crt"
# key = "/etc/ssl/zookeeper.key"
# insecureskipverify = true
2017-08-25 19:32:33 +00:00
```
2017-09-11 17:10:04 +00:00
To enable constraints see [backend-specific constraints section](/configuration/commons/#backend-specific).
Please refer to the [Key Value storage structure](/user-guide/kv-config/#key-value-storage-structure) section to get documentation on Traefik KV structure.