-
Notifications
You must be signed in to change notification settings - Fork 224
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
Schedules in budgets are ignored completely #1939
Comments
There's room to clarify the disruption budget docs, but I think you're reasoning about disruption budgets backwards. Each term in a disruption budget restricts the number of disruptions allowed at any given time, rather than enabling disruptions. So in this case, your budget actually specifies that it can only disrupt 10% of nodes during apiVersion: karpenter.sh/v1
kind: NodePool
spec:
disruption:
budgets:
# Unless otherwise constrained, allow all nodes to be disrupted
- nodes: 100%
# During the schedule, restrict the number of allowed disruptions to 10%
- schedule: 0 8 * * mon-fri # working days and hours
duration: 8h
nodes: 10% To only allow 10% disruption during business hours, and 0 disruptions outside of those hours, you could model it like this: apiVersion: karpenter.sh/v1
kind: NodePool
spec:
disruption:
budgets:
# Set a baseline disruption budget of 10%
- nodes: 10%
# Restrict disruption from 00:00-8:00 and 16:00-00:00 on weekdays
- schedule: 0 0,16 * * mon-fri
duration: 8h
nodes: 0
# Restrict disruption on weekends
- schedule: 0 0 * * sat,sun
duration: 24h
nodes: 0 To verify that a disruption budget is working as expected, you can reference the |
/triage solved |
Hmm, thank you for clarification and suggested change. I'll update budgets in our node pools and check metrics. |
/close |
@jonathan-innis: Closing this issue. In response to this:
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. |
Description
Observed Behavior:
Hi,
We're running Karpenter 1.0.8 in multiple EKS clusters and noticed that schedule in
disruption.budgets
is ignored completely. We have different configurations fordisruption.budgets
and all of them act like schedule doesn't exist there.We weren't using schedule in 0.37, so I cannot say if this is a bug in v1.0 or schedule was never working.
There are also no errors in Karpenter logs itself and all functionality is working fine without issues, except schedule.
Expected Behavior:
Schedule section in
disruption.budgets
is honored and there are no disruptions at random times outside of schedule.Reproduction Steps (Please include YAML):
disruption.budgets
, examples:⏫ with this budget Empty/Underutilized are happening at any time instead of
schedule: 0 8 * * mon-fri
⏫ with this budget all disruptions, including Drift are happening at any time. For example, when new AL2023 AMI is released, all nodes are re-provisioned, ignoring schedule.
Other:
It was reported couple of times in other issues, but I wasn't able to find clear issue exactly about non-working schedules:
Versions:
The text was updated successfully, but these errors were encountered: