Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In nonprod, reduce resouces: Reap pod/apps so they don't consume resources on weekend #69

Open
anborg opened this issue Aug 21, 2021 · 1 comment

Comments

@anborg
Copy link

anborg commented Aug 21, 2021

How to configure this tool for this usecase

  1. User deploys an app
  2. A central db stores a cron or an uptime-schedule E.g: app should be up on weekdays , 9-5 , US/EST for example.
  3. Can pod -reaper reap all app resources that are outside uptime-schedule ? Can you please provide example config?
  4. Input for pod-reaper : list of app/labels that need to be down to 0
@brianberzins
Copy link
Collaborator

Sorry for slow response, I was off in the wilderness on a hiking vacation!

It's should be fairly easy to configure pod reaper to kill pods on the weekends. My first thought would be to have it run every 10 seconds or something during the time you don't want things running and have it terminate everything matching the labels.

My concern would be if there's something else trying to reschedule those. It would probably be even worse if during the weekends we were fighting another scheduler (or even a deployment/replicaset) trying to put everything we kill back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants