Skip to content
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

Merged

Conversation

gregth
Copy link

@gregth gregth commented Feb 27, 2023

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?

Set the --scale-down-unready-enabled flag to a false in order to disable scale-down for unready nodes. The default value is true for backwards compatibility.

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@k8s-ci-robot k8s-ci-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Feb 27, 2023
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Feb 27, 2023
@k8s-ci-robot k8s-ci-robot requested a review from x13n February 27, 2023 18:12
@k8s-ci-robot k8s-ci-robot added area/cluster-autoscaler size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 27, 2023
@gregth
Copy link
Author

gregth commented Feb 27, 2023

Also linking the the initial this PR, which is now closed due to inactivity:

Copy link
Member

@x13n x13n left a 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.

@x13n
Copy link
Member

x13n commented Feb 28, 2023

/assign

@gregth gregth force-pushed the feature-disable-unready-scaledown branch from 64afc48 to 8b01f51 Compare March 2, 2023 22:37
Copy link
Member

@x13n x13n left a 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.

@x13n
Copy link
Member

x13n commented Mar 6, 2023

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>
@gregth gregth force-pushed the feature-disable-unready-scaledown branch from 2906618 to 6cf8c32 Compare March 6, 2023 13:51
@gregth
Copy link
Author

gregth commented Mar 6, 2023

@x13n thanks, squashed the commits and force-pushed.

@x13n
Copy link
Member

x13n commented Mar 8, 2023

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 8, 2023
@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 8, 2023
@k8s-ci-robot k8s-ci-robot merged commit 205293a into kubernetes:master Mar 8, 2023
@gregth gregth deleted the feature-disable-unready-scaledown branch March 9, 2023 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/cluster-autoscaler cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cluster-autoscaler: Add option to disable scale down for unready nodes
3 participants