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

Enabling Cluster Autoscaler on Classy Cluster Day-1 leads to unpredictable behaviour #7683

Closed
abhijit-dev82 opened this issue Dec 5, 2022 · 2 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@abhijit-dev82
Copy link
Contributor

What steps did you take and what happened:
Enable Cluster Autoscaler on classy cluster with worker eplicas field set as a Day-1 Op.

What did you expect to happen:
This limitaion is already mentioned in the cluster autoscaler Readme.
https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler/cloudprovider/clusterapi
"Warning: If the Autoscaler is enabled and the replicas field is set for a MachineDeployment or MachineSet the Cluster may enter a broken state where replicas become unpredictable."

Anything else you would like to add:
A classy cluster will have "replicas=x" field seton Day-1 and the unpredictable behaviour happens due to the conflict happening in updating in the replicas field in MD between the cluster autoscaler and the cluster topology reconciler. This limits enabling autoscaler only on Day-0.

Environment:

/kind bug

@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Dec 5, 2022
@k8s-ci-robot
Copy link
Contributor

@abhijit-dev82: This issue is currently awaiting triage.

If CAPI contributors determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

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.

@enxebre
Copy link
Member

enxebre commented Dec 5, 2022

thanks @abhijit-dev82, closing as dup of #7293

@enxebre enxebre closed this as completed Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
None yet
Development

No branches or pull requests

3 participants