-
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 for unready nodes #4876
Comments
I have sent a PR to implement this feature, see #4877. Any feedback is more than welcome. |
(imo) this is a breaking change that could cause somewhat surprising behaviour for cluster operators. If someone sets |
@drmorr0 Your concern is valid. But, as we have discussed in #4877 (comment), we opt to add a new separate flag for disabling the scale-down of unready nodes, instead of extending the functionality of the existing flag. We must -and will- keep this backwards compatible, the default behavior will be that the Cluster Autoscaler removes unready nodes, unless the user explicitly requests to not remove them via the new flag we'll introduce. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". 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/test-infra repository. |
Which component are you using?:
Cluster Autoscaler
Is your feature request designed to solve a problem? If so describe the problem this feature should solve.:
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 me useful in case a node is unreachable for a period of a 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.
Describe the solution you'd like.:
Provide the ability to disable scale-down for unready nodes. The Cluster Autoscaler ships with the
--scale-down-unready-time
flag, that configures "How long an unready node should be unneeded before it is eligible for scale down". Currently, if the flag is set to a negative or zero value, the unready nodes will be removed immediately. We could modify the logic of the code and if a negative value is provided, the cluster autoscaler shall disable scale down for unready nodes.Describe any alternative solutions you've considered.:
Another alternative solution is to introduce a new flag for disabling scale down for unready nodes, but, we will end up with two flags that will be dependant.
Additional context.:
The text was updated successfully, but these errors were encountered: