英文:
How to enable autoscaling/v2beta2 api-versions in minikube
问题
I don't find autoscaling/v2beta2 or beta1 when I run the command $kubectl api-versions. But I need it for memory autoscaling. What to do?
要启用 autoscaling/v2beta2
英文:
I don't find autoscaling/v2beta2 or beta1 when I run the command $kubectl api-versions. But I need it for memory autoscaling. What to do ?
To enable autoscaling/v2beta2
答案1
得分: 1
很可能您正在使用最新的Minikube与Kubernetes 1.26版本,在该版本中不再提供autoscaling/v2beta2
API:
> 从v1.26版本开始,不再提供HorizontalPodAutoscaler的autoscaling/v2beta2 API版本。
了解更多信息:https://kubernetes.io/docs/reference/using-api/deprecation-guide/#horizontalpodautoscaler-v126
因此,解决方案可能是在您的清单中将API版本更改为autoscaling/v2
,或者使用较旧版本的Minikube/Kubernetes。
英文:
Most likely you're using latest Minikube with Kubernetes 1.26 where autoscaling/v2beta2
API is no longer served:
> The autoscaling/v2beta2 API version of HorizontalPodAutoscaler is no
> longer served as of v1.26.
Read more: https://kubernetes.io/docs/reference/using-api/deprecation-guide/#horizontalpodautoscaler-v126
So the solution might be either changing API version to autoscaling/v2
in your manifests or use older version of Minikube/Kubernetes.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论