-
Notifications
You must be signed in to change notification settings - Fork 237
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 Autoscaling Quickstart #881
Comments
Hi, IIRC |
Thank you for your help. I increased the debug level in the cluster-autoscaler ( I found out, that autoscaler is looking for the
The rest of the logs looks okay:
|
By looking at this: I think you need to set |
@kron4eg Thanks! I didn't found it, because this was added after the I faced with other problem:
Also, I found the strange logs:
It is strange, because here is the pod's limits: Limits:
cpu: 200m
memory: 256Mi
Requests:
cpu: 200m
memory: 256Mi And I choose the And this is the only 1 Pending pod in all cluster. UPD: I tried to manually scale the nodes. Scaling down do not work too:
|
To tell you the truth, I'm not really sure why it doesn't work, we are yet to see / testdrive the integration, see #391. |
@kron4eg After some debugging, I found, that I created the wrong annotations for my MachineDeployment 🤦 To make autoscaler work you will need: git clone https://github.com/kubernetes/autoscaler.git
cd autoscaler/cluster-autoscaler
make build-in-docker && make make-image
docker tag staging-k8s.gcr.io/cluster-autoscaler:dev username/cluster-autoscaler:tag
docker push username/cluster-autoscaler:tag Set spec:
containers:
- image: "username/cluster-autoscaler:tag"
command:
- ./cluster-autoscaler
- --cloud-provider=clusterapi
- --namespace=kube-system
- --logtostderr=true
- --stderrthreshold=info
- --v=4
env:
- name: CAPI_GROUP
value: "cluster.k8s.io" Create the new node with correct annotations: apiVersion: "cluster.k8s.io/v1alpha1"
kind: MachineDeployment
metadata:
name: autoscaling-pool
namespace: kube-system
annotations:
cluster.k8s.io/cluster-api-autoscaler-node-group-min-size: "1"
cluster.k8s.io/cluster-api-autoscaler-node-group-max-size: "3" |
oh... hehe. thanks for the update @smoulderme ! |
Hello guys. Thanks for such a great project!
As I understood, it is possible to integrate the cluster-autoscaler with machine-controller. It there any guide about how to do it?
First of all, I created the cluster using this quickstart.
Then I installed the cluster-autoscaler with clusterapi provider:
Also I created some pods and they are in the Pending state, because there is no available worker nodes, so it cannot be scheduled. I did it to test the autoscaler. As there is no available node, then the autoscaler should create them. The MachineDeployment that I created with these annotations ignoring my annotations. It just created 1 worker node and that's it. Here is my MachineDeployment:
Here is the cluster autoscaler logs:
What am I doing wrong? Maybe I need to reconfigure something?
The text was updated successfully, but these errors were encountered: