-
Notifications
You must be signed in to change notification settings - Fork 216
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
Multiple schedule in disruption budgets don't work #1866
Comments
This issue is currently awaiting triage. If Karpenter contributors determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Hmm, I might be wrong, but after some tests I think this actually provides what I want: budgets:
- schedule: "0 9 * * mon-fri" # On Weekdays during business hours, don't do any deprovisioning.
duration: 8h
nodes: 10% Basically |
Hmm, tests shows that schedule I mentioned in #1866 (comment) actually doesn't work and disruptions are happening any time. Maybe I'm missing something? |
HI @nantiferov,
|
Hmm, thank you, will double check with 1-5, but I remember vaguely I tested this as well. Btw, this syntax is listed in docs https://karpenter.sh/docs/reference/settings/#feature-gates |
But from logic perspective, am I right, that this configuration should prevent Karpenter to do any disruptions outside of schedule time (working hours)?
|
The configuration that you have shared will allow 10% nodes to get disrupted between Mon-Fri starting at 08:00 up to 8 hours. If you don't want any kind of disruption happening in that period you want to set |
Also sorry for the confusion I didn't mean that you can't specify "mon-fri", I was just trying to say that the standard is to use number. But even then there's something wrong in the syntax and that's why you are seeing this error - |
But will it do any disruptions outside of these hours?
And so far it looks at least
Thank you, will try this |
Description
Hi,
I'm not sure if this is expected behavior, but I don't see it mentioned in docs https://karpenter.sh/v1.0/concepts/disruption/
Basically, I want to invert logic, described here https://karpenter.sh/docs/concepts/nodepools/
To have disruptions only during working hours. I tried to achieve this with something like:
Observed Behavior:
Errors in karpenter logs:
{"level":"ERROR","time":"2024-12-05T14:34:31.529Z","logger":"controller","message":"detected disruption budget errors","commit":"a2875e3","controller":"disruption","namespace":"","name":"","reconcileID":"ca5962e8-d939-4453-a8be-4ca11fdf9bf4","error":"invalid disruption budgets in nodepool xxx, invariant violated, invalid cron %!s(<nil>)"}
Expected Behavior:
Maybe it could be achieved differently, but end goal with this - to have disruptions only during working hours.
Reproduction Steps (Please include YAML):
Provided before.
Versions:
kubectl version
): 1.30The text was updated successfully, but these errors were encountered: