jittering / traefik-kop

A dynamic docker->redis->traefik discovery agent
MIT License
179 stars 13 forks source link

Automatic Expire #33

Closed JohanVlugt closed 5 months ago

JohanVlugt commented 5 months ago

Hello,

I wanted to try a Redis alternative dragonflydb and I saw that it does not have a notify-keyspace-events flag. Now my problem is that when traefik-kop sends they keys it to Redis it works like normal. But when I down a container it will not reflect it in Traefik, in Traefik it shows up as a route that is setup.

The work-around in Redis is to set notify-keyspace-events KEA in the config so that it will immediately reflect in Traefik when a route/container is downed.

Is it possible to set up a default expire on the key so that it removes the route when I down the container? Thanks for this project!

JohanVlugt commented 5 months ago

OK, I'm a bit of a dummy but I forgot to add watch: true in my traefik config and now it works correctly with redis and updating the status of a route. But it does not work yet with dragonflydb. But that does not concern this project.

You can close this ticket if you want.