<p>I want to prevent the Horizontal auto-scaler from scaling down too early.I came across a  doc that mentions we can update <code>/etc/kubernetes/manifests/kube-controller-manager.yaml</code> file on master node and edit this flag <code>--horizontal-pod-autoscaler-downscale-stabilization</code>.
Is it possible for GKE in Google Cloud ?<br />
As far I know we cannot access the master node on GKE.</p>

<p>There is no way in GKE you can change the flag on the master node as it's a google managed service.</p>
<p>You can use other options like custom metrics or custom HPA solutions.</p>
<p>For implementing the <strong>custom HPA</strong> solution instead of <strong>default K8s HPA</strong> you can checkout the : <a href="https://github.com/nanit/kubernetes-custom-hpa" rel="nofollow noreferrer">https://github.com/nanit/kubernetes-custom-hpa</a></p>
<p>you can check the configuration flag <code>behavior.scaleDownCooldown</code> which takes the time in <strong>seconds</strong> in which the HPA should wait before scaling down again.</p>
