Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to config the Kubernetes Cluster Autoscaler on Google Cloud?

I create cluster on Google Kubernetes Engine with Cluster Autoscaler option enabled.
I want to config the scaling behavior such as --scale-down-delay-after-delete according to https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md .

But I found no Pod or Deployment on kube-system which is cluster autoscaler.

Anyone has ideas?


Edit: I am not saying Horizontal Pod Autoscaler.

And I hope I can configure it as like this :

$ gcloud container clusters update cluster-1 --enable-autoscaling --scan-interval=5 --scale-down-unneeded-time=3m
ERROR: (gcloud.container.clusters.update) unrecognized arguments:
  --scan-interval=5
  --scale-down-unneeded-time=3m
like image 300
WeiChing 林煒清 Avatar asked Feb 24 '18 13:02

WeiChing 林煒清


People also ask

How is Autoscaling done in Kubernetes?

In Kubernetes, a HorizontalPodAutoscaler automatically updates a workload resource (such as a Deployment or StatefulSet), with the aim of automatically scaling the workload to match demand. Horizontal scaling means that the response to increased load is to deploy more Pods.


1 Answers

It is not possible according to https://github.com/kubernetes/autoscaler/issues/966

Probably because there is no way to access the executable (which it seems to be) on GKE.

You can't even view the logs of the autoscaler on GKE: https://github.com/kubernetes/autoscaler/issues/972

like image 75
Chris Stryczynski Avatar answered Sep 24 '22 04:09

Chris Stryczynski