<p>While following the tutorial found <a href="https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/" rel="nofollow noreferrer">here</a>, I saw that I need autoscaling/v2beta2 for having custom metrics for the Horizontal Pod Autoscaler, but don't know how to enable it.</p>

<p><strong>Environment details:</strong></p>

<ul>
<li>Google Cloud platform</li>
<li>Kubernetes version 1.13.7-gke.8 (latest)</li>
</ul>

<p><strong>What did I try:</strong></p>

<ul>
<li><p>Using "kubectl api-versions", I checked what API groups I have enable for autoscaling and have only the following:
autoscaling/v1
autoscaling/v2beta1</p></li>
<li><p>I found the following <a href="https://kubernetes.io/docs/concepts/overview/kubernetes-api/" rel="nofollow noreferrer">documentation</a> that says "Certain resources and API groups are enabled by default. They can be enabled or disabled by setting --runtime-config on apiserver. --runtime-config accepts comma separated values.". Taking a look at the <a href="https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/" rel="nofollow noreferrer">kube-apiserver command documentation</a> , I could find a way to use this command for gcloud</p></li>
</ul>

claudiu.decean
<p><strong>Update</strong>: upgrade your cluster to at least 1.15.5 to get <code>autoscaling/v2beta2</code>.</p>
<hr />
<p>Currently, GCP is not supporting <code>autoscaling/v2beta2</code>. This issue has been already reported to google, more details and progress changes can be observed at: <a href="https://issuetracker.google.com/135624588" rel="nofollow noreferrer">https://issuetracker.google.com/135624588</a></p>
<p>However, you can use it freely in Minikube and Kubeadm.</p>
