traefik
traefik copied to clipboard
Change loglevel without changing static config file
Welcome!
- [X] Yes, I've searched similar issues on GitHub and didn't find any.
- [X] Yes, I've searched similar issues on the Traefik community forum and didn't find any.
What did you expect to see?
We'd like to change Traefik's loglevel from outside for a temporary troubleshooting purpose.
We can do this in a standalone environment for it.
- change log::level in the static config file e.g. from
log:
level: INFO
to
log:
level: DEBUG
- restart Traefik
When Traefik is running inside K8s with the static config in K8s configmap, we can do this.
- change log::level in the static config in the configmap
- restart the Traefik pod
However, if Flux is configured and we can't suspend it, the config change made by the step1 is restored and then pod is restarted by Flux.
This is a feature request to change log level from outside while keeping the original static config mainly for a temporary troubleshooting in K8s.
Hi! This is implemented in https://github.com/traefik/traefik/pull/10301
Duplicate of #9947
Duplicate of #9947
Hi! The purpose is actually little different :) Please take a look at our implementation as well. 🥇
@sandy2008 Thanks for opening the PR, but as discussed there, we don't think configuring this on the API is what we want. The security implications are just too high.
@sokoide I faced situation where this would have been very handy. I would love to know more about your use case and constraints. Wouldn't it be possible to just push your ConfigMap changes and let Flux sync it for you? Could you be more specific in describing your need and why restarting your Traefik is not enough for you?
Hi! I'm Træfiker :robot: the bot in charge of tidying up the issues.I have to close this one because of its lack of activity :disappointed:Feel free to re-open it or join our Community Forum.