-
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
Autoscaler modifies ASG resources that it shouldn't #406
Comments
@mumoshu Can you take a look? @orkhanM This looks like a problem with node group autodiscovery. There is also another open bug related to it: #252. My suggestion would be to use static node group configuration (specifying each group you want CA to manage explicitly with |
Hey there, I just reproduced this issue last night and actually found that CA scaled down some master ASGs from a different cluster in the same region! I was using v0.6.2 and also began seeing API rate limit exceeded errors from AWS. Very odd... I was using the |
We ran into this issue also. We modified our IAM policy for the CA to protect against this:
|
Hi, sorry for the trouble. @geezy Are you sure you're using CA 0.6.2? The fix for the problem on CA side is #280, but it seems like the only release including it is CA 1.0.0 as of today. @geezy @orkhanM As @bismarck has kindly suggested, you can prevent the problem that unintended node being killed by modifying the IAM policy like kubernetes-retired/kube-aws#903. Btw, the modification to the IAM policy is included since kube-aws v0.9.9-rc.1. Also, in case your cluster is provisioned with kube-aws, probably you're misconfiguring cluster.yaml as explained in kubernetes-retired/kube-aws#905. Would you mind revising your cluster.yaml? FYI, kubernetes-retired/kube-aws#800 would help you understand what was going on in your cluster - if you're interested. |
Thanks @bismarck ! @mumoshu sorry for the delayed response! For now, we removed the Thank you very much! |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
On a kube-aws ( version v0.9.8 ) cluster with cluster autoscaler addon enabled I noticed the autoscaler was scaling down ASG's unrelated to the cluster.
The autoscaler manifest looks like:
An excerpt from the cluster-autoscaler logs:
All ASGs referenced in the above log with the prefix
production-k8s-02-Controlplane
are the ASG's I expected to be effected and they provision the EC2 instances on which the cluster-autoscaler runs. All other ASG's mentioned are not part of the cluster and should not be touched by autoscaler.The text was updated successfully, but these errors were encountered: