我正在使用 GKE 试用 Cloud Run,想知道这个错误:
错误:(gcloud.beta.container.clusters.create)参数--addons:CloudRun 必须是 [HttpLoadBalancing、HorizontalPodAutoscaling、KubernetesDashboard、Istio、NetworkPolicy] 之一
似乎它不会让我将 CloudRun 用作插件,我只是在创建一个集群。
整个命令是:
gcloud beta container clusters create testcloudrun \
--addons=HorizontalPodAutoscaling,HttpLoadBalancing,Istio,CloudRun \
--machine-type=n1-standard-4 \
--cluster-version=1.12.6-gke.16 --zone=us-central1-a \
--enable-stackdriver-kubernetes --enable-ip-alias \
--scopes cloud-platform
我只是按照文档中的快速入门: https ://cloud.google.com/run/docs/quickstarts/prebuilt-deploy-gke
~~ 更新:
我尝试通过 Cloud Console 创建集群,但出现错误:
Horizontal pod autoscaling must be enabled in order to enable the Cloud Run addon.
这也是一个已知问题: https ://cloud.google.com/run/docs/issues