@raphaelle
To enable the autoscaling/v2beta2 API versions in Minikube, you need to follow these steps:
- Start Minikube with the --extra-config flag to enable the autoscaling/v2beta2 API versions:
minikube start --extra-config=apiserver.enable-aggregator-routing=true
- 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.
- Create/update your HorizontalPodAutoscaler resource with the autoscaling/v2beta2 API version. For example:
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
...
- 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.