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

by raphaelle , in category: General Help , 3 months ago

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

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by monroe.bahringer , 3 months 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.