Reloader icon indicating copy to clipboard operation
Reloader copied to clipboard

Cron alike reloading

Open mersl opened this issue 2 years ago • 2 comments

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

mersl avatar Nov 17 '22 09:11 mersl

Hi,

Is there an estimate on when this particular feature will be picked up?

niroowns avatar Jan 13 '23 02:01 niroowns

@niroowns what are your use cases?

rasheedamir avatar Mar 16 '23 20:03 rasheedamir