-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Error when using HA acme in kubernetes with etcd #725
Comments
Can you post your DEBUG logs? |
Sure, this is the DEBUG log:
This is the JSON stored in etcd under
While testing i found something else: when there are no values stored in etcd under /traefik, the first instance of traefik behaves differently (log is longer so I attached it). |
@pdressel did you use |
@emilevauge I used a kubernetes ConfigMap to mount the toml file into every container. Is the |
Yes, as you told traefik to use etcd to get its configuration, it will override the toml config using etcd config. As it's probably empty, you get this error. You should use storeconfig once, and then remove the toml :) |
I added a kubernetes job to run the storeconfig command on initial deployment, that fixed it. Thanks! 🎉 |
@pdressel could you please describe in more detail how you proceeded ? |
@Smana sure, this is the kubernetes job I used to populate the KV store (which must be running first, of course)
In conjunction with a configmap like so:
After this, you can run I never moved this into production though, since at the time HA acme was in a very early release candidate and I needed a stable solution for production. |
@pdressel Thank you for these details.
But anyway this is not related to this issue :) |
Hi @emilevauge , in the docs here https://docs.traefik.io/basics/#static-trfk-configuration it says
This makes it sound like you can use more than one config source at the same time, and Traefik will search for properties in all of them, in the sequence given, stopping when it finds a value. Is that actually incorrect? |
I am running traefik v1.1.0-rc1 in kubernetes, and I get the following error when I try to run it with etcd as KV store and HA acme:
I use the following TOML:
I checked that the etcd PetSet is working, and traefik does store data in it under traefik/acme/account.
Any advice on how to debug this?
The text was updated successfully, but these errors were encountered: