-
Notifications
You must be signed in to change notification settings - Fork 132
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
Autoscaling #605
Comments
Hey, thanks for inquiring. What we need is a cluster-autoscaler implementation that supports clusterapi v1alpha1 as backend. @frobware has built one already, althought it isn't merged: kubernetes/autoscaler#1866 Other than that, we'd need to fix #564 (althought that doesn't matter if you run on a platform that does have a cloudprovider) |
thanks @alvaroaleman |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with /lifecycle stale |
/remove-lifecycle |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with /lifecycle stale |
/remove-lifecycle stale |
So, upstream clusterAPI change got merged and released. And machine-controller doesn't need to do anything! In order to make autoscaling work, MachineDeployments or MachineSets should be annotated like this: apiVersion: cluster.k8s.io/v1alpha1
kind: MachineDeployment
metadata:
annotations:
cluster.k8s.io/cluster-api-autoscaler-node-group-min-size: "1"
cluster.k8s.io/cluster-api-autoscaler-node-group-max-size: "10" But such annotations are out of machine-controller scope and should be provided by the user. |
May I ask how the autoscaler annotation could be used in the output.tf kubeone_workers? From the examples there is a "$var.cluster_name}-pool1" example. |
Terraform output is unmarshalled onto so there is annotations field that will be copied to so the resulted terraform output would look something like this: output "kubeone_workers" {
value = {
"${var.cluster_name}-pool1" = {
replicas = var.workers_replicas
providerSpec = {
annotations = {
"cluster.k8s.io/cluster-api-autoscaler-node-group-min-size" = "1"
"cluster.k8s.io/cluster-api-autoscaler-node-group-max-size" = "10"
}
... |
@kron4eg Thank you so much mate! |
Hi, is it possible to integrate the cluster autoscaler with the machine-controller? Or does the controller provide the autoscaling features?
The text was updated successfully, but these errors were encountered: