Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

custom metrics with HorizontalPodAutoscaler on GKE

I'm trying set up custom metrics with a HorizontalPodAutoscaler on a 1.6.1 alpha GKE cluster.

According to https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#prerequisites I need to set --horizontal-pod-autoscaler-use-rest-clients on kube-controller-manager to enable metrics collection. From GKE, it's not clear whether it's possible to set flags on kube-controller-manager. Any ideas?

Has anyone gotten custom metrics working with HPA on GKE?

like image 554
siggy Avatar asked Sep 06 '25 03:09

siggy


1 Answers

You can't manipulate any of the kubernetes cluster component directly in GKE(Google Container Engine), Google will do that job, if you want to achieve that you may need to deploy your own kubernetes cluster.

like image 170
Crazykev Avatar answered Sep 09 '25 19:09

Crazykev