While following the tutorial found here, I saw that I need autoscaling/v2beta2 for having custom metrics for the Horizontal Pod Autoscaler, but don't know how to enable it.
Environment details:
What did I try:
Using "kubectl api-versions", I checked what API groups I have enable for autoscaling and have only the following: autoscaling/v1 autoscaling/v2beta1
I found the following documentation 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 kube-apiserver command documentation , I could find a way to use this command for gcloud
Currently, GCP is not supporting autoscaling/v2beta2
. This issue has been already reported to google, more details and progress changes can be observed at: https://issuetracker.google.com/135624588
However, you can use it freely in Minikube and Kubeadm.