Etcd Provider

Traefik can be configured to use Etcd as a provider.

  1. ################################################################
  2. # Etcd Provider
  3. ################################################################
  4. # Enable Etcd Provider.
  5. [etcd]
  6. # Etcd server endpoint.
  7. #
  8. # Required
  9. # Default: "127.0.0.1:2379"
  10. #
  11. endpoint = "127.0.0.1:2379"
  12. # Enable watch Etcd changes.
  13. #
  14. # Optional
  15. # Default: true
  16. #
  17. watch = true
  18. # Prefix used for KV store.
  19. #
  20. # Optional
  21. # Default: "/traefik"
  22. #
  23. prefix = "/traefik"
  24. # Force to use API V3 (otherwise still use API V2)
  25. #
  26. # Deprecated
  27. #
  28. # Optional
  29. # Default: false
  30. #
  31. useAPIV3 = true
  32. # Override default configuration template.
  33. # For advanced users :)
  34. #
  35. # Optional
  36. #
  37. # filename = "etcd.tmpl"
  38. # Use etcd user/pass authentication.
  39. #
  40. # Optional
  41. #
  42. # username = foo
  43. # password = bar
  44. # Enable etcd TLS connection.
  45. #
  46. # Optional
  47. #
  48. # [etcd.tls]
  49. # ca = "/etc/ssl/ca.crt"
  50. # cert = "/etc/ssl/etcd.crt"
  51. # key = "/etc/ssl/etcd.key"
  52. # insecureSkipVerify = true

To enable constraints see provider-specific constraints section.

Please refer to the Key Value storage structure section to get documentation on Traefik KV structure.

Note

The option useAPIV3 allows using Etcd API V3 only if it's set to true. This option is deprecated and API V2 won't be supported in the future.