<p>I'm trying set up custom metrics with a <code>HorizontalPodAutoscaler</code> on a 1.6.1 alpha GKE cluster.</p>

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

<p>Has anyone gotten custom metrics working with HPA on GKE?</p>

<p>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.</p>
