-
Notifications
You must be signed in to change notification settings - Fork 59
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
How to just wakeup #142
Comments
Hi @iamatulsingh, yes this is an interesting feature to add, we could add it to the roadmap. At the moment, to wake up the namespace we re apply the resources, which reset the replicas to the configured number. But I agree with you that we could have some better interface to handle this. Another idea could be an API, but there are some security issues to address. Maybe the more interesting feature could be a dashboard to interact directly with the cluster. So, only someone with the permission to see the kube-green namespace could handle it. |
Hi @davidebianchi , I don't think it's bad at all and any one can change the configuration as you mentione. I'll close this issue. |
Sorry to reopen the issue. example code to let everything sleep
This is that I'm trying to wakeup all resources
|
By this, you meant to re apply resources such as deployments or other things to reset it? I thought to re apply SleepInfo to reset wakup time. |
Hi @iamatulsingh, sorry for the delay in the response. So, with the re apply of the SleepInfo, the new wake up time is not handled correctly? In the case you described, yes it should wake up at 13:40 (+/- 1 minute).
Yes, I meant to reapply the deployment. But reapply the SleepInfo should work too. I try to make some test in the following days |
Thanks for the reply @davidebianchi . Actually suppose sleepinfo is already in affect but I want to wake it up, reapplying Sleepinfo didn't help. |
FYI, it may not help, but it could give insights. On our side, we deploy everything with ArgoCD:
It is not optimal, but it allowed us to ship this feature fast. |
any update here? seems like a must-have feature. |
@victorboissiere thanks for the insights. It seems a good idea till this feature get added. |
@victorboissiere your suggestion looks very helpful, would you mind to better explain the "job" thing? Just because I did not grasp the way you've proceeded. Thank you so much :) |
+1 for this feature, we're facing a really identical situation, where we need to exit from a sleep for some "urgent" conditions. I was thinking that your proposal here @#76 could work @davidebianchi i.e. disabling the cluster sleep and leave the If we come up with an agreement on how to proceed it would be not a problem for me to contribute with some PR :) |
So, in your use case is would be ok to change the CRD? |
Maybe an annotation on the SleepInfo custom resource (like It shouldn't be hard to implement. What do you think about ? |
Hi, for sure it shouldn't be hard to implement. But I think the problem is to have the permissions to change the CRD. But for sure, it could be interesting for the other use cases. |
+1 for this feature 👍 |
+1 |
Hi team. This feature I think is really powerful, so +1. |
+1 |
1 similar comment
+1 |
My question is Genuine. Let me tell you one condition.
If I create SleepInfo for weekend and wakeup at weekdays but because of some urgent conditions, I want to make resources up again during weekend. I know I can change the sleepAt (to run for some times at weekend) but again I'll have to change sleepAt like previous (sleep for weekends) configuration and it's really bad if these steps of changing SleepAt can only apply through CICD and that too when someone from an organisation approve it and merge it specially like IAC and after preview can be checked and merge for a environment.
What is the best approach?
The text was updated successfully, but these errors were encountered: