-
-
Notifications
You must be signed in to change notification settings - Fork 317
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 multi architecture #728
Conversation
Hmm, is it possible to have 2 autoscalers on one cluster? I'll look into this when I get a chance |
if I understand this correctly kubernetes/autoscaler@6e94d1a it should be possible now to use a node group with a |
@ifeulner @aleksasiriski Very interesting, if we use autoscaler node groups, then it should work. PR welcome folks! |
No PR needed, if that is implemented. We already support multiple node groups in the autoscaler setup. |
@ifeulner Have you seen the code for this very PR, no way this is going to work for multiple autoscaler nodepools of different types. It is designed for one type, based on checking out the server_type of the first autoscaler nodepool. |
@mysticaltech Maybe I am wrong, but look here: https://github.com/kubernetes/autoscaler/blob/1009797f5585d7bf778072ba59fd12eb2b8ab83c/cluster-autoscaler/cloudprovider/hetzner/hetzner_node_group.go#L390 The updated
Comment from
|
Very interesting, we may need to delete lines. Maybe only the selector is needed indeed. |
Will check, need to find out if these patches are already deployed officially... |
@mysticaltech so now I see our misunderstanding. Our implementation here
So there is a PR needed for our code ;) |
Couldn't we just use the same named label selector? Like how it is currenty? |
should work also according to the documentation above, yes. Will try and provide a PR if it is working. |
it works with the label-selector but the Hetzner |
Added architecture auto selection for the autoscaler. But the way it is now, it's the same architecture for all autoscaler nodepools, I do not see a way out of that constraint.
Also made other small tweaks, especially to the packer file to make it easier to edit, and also made the
createkh
script better.FYI @aleksasiriski @ifeulner