Skip to content
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

Suggestion: Traefik dynamic configuration provider #288

Open
thielj opened this issue Apr 19, 2024 · 4 comments
Open

Suggestion: Traefik dynamic configuration provider #288

thielj opened this issue Apr 19, 2024 · 4 comments

Comments

@thielj
Copy link

thielj commented Apr 19, 2024

Right now, enabling services for use with sablier requires managing configuration in various locations as Traefik discards dynamic configuration obtained from docker when a container is stopped.

An alternative would be for sablier to provide this information. I don't know if it's possible through the plugin, but providing an HTTP end point scraped by Traefik every few seconds would work.

@acouvreur
Copy link
Owner

It's an interesting solution indeed. Thanks for proposing that.

However, this behavior is really for a specific usage of traefik.

Note that in future releases of traefik, you should be able to use Sablier labels just like traefik labels to register the plugin configuration.

And as you mentioned, currently stopped containers will be discarded from the pool so you have to configure this in files and it may not be practical for you.


Now, this behavior has been identified as a bug in traefik: see traefik/traefik#9907 (comment)

If I have time, I will fix the issue on the Traefik repository.

So instead of developing a scraper, I'd recommend you to wait for the option to be available for Traefik.

Does that make sense ?

@aless3
Copy link

aless3 commented Jun 13, 2024

traefik maintainers have questions on changing allowEmptyServices, what do you think?

btw this is not to pressure you, but maybe their reply slipped your mind in a busy period or the like, it happens all the time to me

@acouvreur
Copy link
Owner

acouvreur commented Jun 15, 2024

Hello @aless3, thanks for your interest in the project :)

I'm currently busy on a lot of other things in my life, I'll be able to work on the project soon enough.

I'm also using traefik and docker and I'm looking forward to be able to use sablier on my own services :D

@aless3
Copy link

aless3 commented Jun 17, 2024

ah yes, life comes first obviously, good luck with that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants