New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow Traefik to function in HA with Flatfile #3594
Comments
Hello @schemen, The feature you are requesting is one that gets requested often. You are correct, that we do not recommend using a flat file for multiple Traefik instances with LetsEncrypt. There are a few reasons for this:
Using a KV store solves these problems by allowing leader election to take place between the Traefik instances. This ultimately means that one instance is elected to be responsible for updating certificates, and all nodes have access to the same challenge data via KV key lookup. We have discussed at length the pros and cons of modifying the code to allow a flat file to be used for HA, but ultimately we have decided that we will not pursue it due to being sub-optimal from a design perspective:
I hope this gives a bit more clarity to the situation. For these reasons, I will be closing this issue. Please feel free to reach out to us on slack: traefik.slack.com if you have any further questions or concerns about this issue. Thanks! |
Heh! Thank you for clarifying this for me, sorry for asking a much asked Request yet again :) I hope that we'll get updated documentation regarding Docker Swarm then, I am currently not able to get a running example sadly. Let me know if I can help with that, somehow. |
Do you want to request a feature or report a bug?
Feature
What did you expect to see?
With #2940 and #3487 making it really hard to run Traefik in HA for Docker Swarm, I would love to see Traefik HA to be able to use ACME.json and a simple config file over a shared Filesystem (Which I assume most of the swarm clusters have).
Currently, I think you guys are saying that it is absolutely not recommendet to start HA (--global) as there are difficulties regarding the flat file. Because of that, I run Traefik with a single container still using that flat file.
Is there any chance that only the master of the N Traefik containers accesses the flat file RW and the others only R? Why is it that we only can use a KV store?
The text was updated successfully, but these errors were encountered: