Reloader
Reloader copied to clipboard
Cron alike reloading
I'm using reloader since quite some time and it works very well for most of our needs.
Some container images would need periodical reloads (ie. they got rebuild by pipeline to get for example security fixes, but have the same code base incl. the same image tag incl latest [1] ).
Assuming we have imagepullPolicy set to always, reloader could do the needed actions, if it would trigger on a cron alike idea.
I could imagine, an annotation like
reloader.stakater.com/periodic: "0 2 * * 1,4"
which triggers the object (deployment, stateful set etc) at the given cron timer (every Monday and Thursday at 2:00am in this example) would do. Ideally, the existing behaviour of redeploy on secret/configmap changes should also work in parallel.
Maybe others, would find that helpful, too
[1] other use cases:
- redeploy 3rd party containers, which writing 'data' into the overlays and filling up the filesystem -> house keeping
- restarting 3rd party containers/apps regularly, which go crazy after some days/weeks for unknown reasons, but keep health checks in k8s valid
Hi,
Is there an estimate on when this particular feature will be picked up?
@niroowns what are your use cases?