如何在minikube中启用autoscaling/v2beta2 API版本

huangapple go评论55阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年2月19日 23:58:21
  • 转载请务必保留本文链接:https://go.coder-hub.com/75501418.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定