在 1.20.8-gke.900 集群中找不到 GKE MultidimPodAutoscaler
Not Finding GKE MultidimPodAutoscaler in 1.20.8-gke.900 Cluster
尝试在 GKE 集群 运行 中测试 MultidimPodAutoscaler 时 1.20.8-gke.900:
apiVersion: autoscaling.gke.io/v1beta1
kind: MultidimPodAutoscaler
...
我收到以下 helm 错误:
Error: UPGRADE FAILED: unable to recognize "": no matches for kind "MultidimPodAutoscaler" in version "autoscaling.gke.io/v1beta1"
进一步调查:
kubectl explain MultidimPodAutoscaler
基本确认不存在:
the server doesn't have a resource type "MultidimPodAutoscaler"
和运行:
kubectl api-versions
甚至没有将 autoscaling.gke.io/v1beta1 列为可用 API.
据我了解,GKE 在 1.19.4-gke.1700 中添加了 MultidimPodAutoscaler,所以我期待它可用。
https://cloud.google.com/kubernetes-engine/docs/how-to/multidimensional-pod-autoscaling
如果能帮助我理解我所缺少的,我们将不胜感激。
您需要为集群启用 Vertical Pod Autoscaling。
您可以通过 UI 启用它,或者您可以使用以下命令更新您的集群:
gcloud container clusters update $CLUSTER_NAME \
--enable-vertical-pod-autoscaling
尝试在 GKE 集群 运行 中测试 MultidimPodAutoscaler 时 1.20.8-gke.900:
apiVersion: autoscaling.gke.io/v1beta1
kind: MultidimPodAutoscaler
...
我收到以下 helm 错误:
Error: UPGRADE FAILED: unable to recognize "": no matches for kind "MultidimPodAutoscaler" in version "autoscaling.gke.io/v1beta1"
进一步调查:
kubectl explain MultidimPodAutoscaler
基本确认不存在:
the server doesn't have a resource type "MultidimPodAutoscaler"
和运行:
kubectl api-versions
甚至没有将 autoscaling.gke.io/v1beta1 列为可用 API.
据我了解,GKE 在 1.19.4-gke.1700 中添加了 MultidimPodAutoscaler,所以我期待它可用。
https://cloud.google.com/kubernetes-engine/docs/how-to/multidimensional-pod-autoscaling
如果能帮助我理解我所缺少的,我们将不胜感激。
您需要为集群启用 Vertical Pod Autoscaling。 您可以通过 UI 启用它,或者您可以使用以下命令更新您的集群:
gcloud container clusters update $CLUSTER_NAME \
--enable-vertical-pod-autoscaling