stakater / Reloader

A Kubernetes controller to watch changes in ConfigMap and Secrets and do rolling upgrades on Pods with their associated Deployment, StatefulSet, DaemonSet and DeploymentConfig – [✩Star] if you're using it!

Home Page:https://docs.stakater.com/reloader/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possible to wait n time before reload occurs

retr0h opened this issue · comments

Is it possible for the reloader to wait n time before issuing the reload of a deployment?

What is the use case?

I just stumbled upon this issue and I personally have two viewpoints on this matter. On the one hand I want to have configuration changes made available as fast as possible in my workload. On the other hand I might have some use cases that are not so time sensitive like tls cert renewal or similar. In this case it could be nice to configure s.th. like a time window to postpone the reload to a time with less traffic.

Extending to this, will be nice to have functionality like defining maintenance window and perform reload in that period only.

What is the use case?

We have an API endpoint that we wish to restart when a config map changes, as the config map contains env vars mounted into the deployment. However, this api endpoint is responsible for updating many config maps across the system, one of which is the one it's mounting, therefore reloader will restart it, before it's able to complete it's job.

Having a delay before restart would be nice.