-
Notifications
You must be signed in to change notification settings - Fork 4k
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
cluster-autoscaler: Add option to disable scale down of unready nodes #5537
cluster-autoscaler: Add option to disable scale down of unready nodes #5537
Conversation
Also linking the the initial this PR, which is now closed due to inactivity: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly LGTM, just one minor comment.
cluster-autoscaler/core/scaledown/eligibility/eligibility_test.go
Outdated
Show resolved
Hide resolved
/assign |
64afc48
to
8b01f51
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, mostly LGTM, but found two more really minor comments.
cluster-autoscaler/core/scaledown/eligibility/eligibility_test.go
Outdated
Show resolved
Hide resolved
Thanks, looks good to me now, can you squash the commits? |
Add flag '--scale-down-unready-enabled' to enable or disable scale-down of unready nodes. Default value set to true for backwards compatibility (i.e., allow scale-down of unready nodes). Signed-off-by: Grigoris Thanasoulas <gregth@arrikto.com>
2906618
to
6cf8c32
Compare
@x13n thanks, squashed the commits and force-pushed. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gregth, x13n The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Add flag '--scale-down-unready-enabled' to enable or disable scale-down of unready nodes. Default value set to true for backwards compatibility (i.e., allow scale-down of unready nodes).
Which component this PR applies to?
Cluster Autoscaler
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR adds the option to disable scale down for unready nodes.
There are cases where a user may not want the unready nodes to be removed from a cluster.
As an example, but not limited to, this might be useful in case a node is unreachable for a period of time and local data live there, the node shall remain in the cluster, and possibly an admin may want to take any actions for recovering it.
Which issue(s) this PR fixes:
Fixes #4876.
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: