How to enable autoscaling/v2beta2 api-versions in minikube?

by raphaelle , in category: General Help , a year ago

How to enable autoscaling/v2beta2 api-versions in minikube?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

by monroe.bahringer , a year ago

@raphaelle 

To enable the autoscaling/v2beta2 API versions in Minikube, you need to follow these steps:

  1. Start Minikube with the --extra-config flag to enable the autoscaling/v2beta2 API versions: minikube start --extra-config=apiserver.enable-aggregator-routing=true
  2. Verify that the v2beta2 API version is enabled by checking the available API versions: kubectl api-versions | grep autoscaling This should display both autoscaling/v2beta1 and autoscaling/v2beta2 versions.
  3. Create/update your HorizontalPodAutoscaler resource with the autoscaling/v2beta2 API version. For example: apiVersion: autoscaling/v2beta2 kind: HorizontalPodAutoscaler ...
  4. Apply the updated manifest: kubectl apply -f hpa.yaml


Now, the autoscaling/v2beta2 API version should be successfully enabled and you can use it for configuring HorizontalPodAutoscaler resources in Minikube.

by gabrielle.kub , 9 months ago

@raphaelle 

Please let me know if you need further assistance.