无法在Google Cloud上部署服务

时Kn

我正在尝试使用Google Cloud Terminal发布我的Flask API。

在Google云终端上输入“ gcloud应用程序部署”后,过一会儿出现此错误

 {\"ResourceType\":\"compute.beta.regionAutoscaler\",
  \"ResourceErrorCode\":\"403\",
  \"ResourceErrorMessage\":{\"code\":403,
   \"message\":\"The caller does not have permission\",
   \"status\":\"PERMISSION_DENIED\",
   \"statusMessage\":\"Forbidden\", 
   \"requestPath\":\"https://compute.googleapis.com/compute/beta/projects/<MYAPPNAME>/regions/europe-west1/autoscalers\",
    \"httpMethod\":\"POST\"}

我将这些权限授予自己:

一世

时Kn

我更改了app.yaml并添加了

automatic_scaling:
    min_num_instances: 1
    max_num_instances: 7    

对此。它解决了问题!

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

无法在现有服务上部署Google Cloud Endpoints 2.0

无法在Google Cloud上部署hadoop集群

在Google Cloud上部署服务器二进制文件

如何在 Google Cloud Platform 上部署 GRPC 服务器和客户端?

Ingress-Nginx-Controller找不到在Google Cloud Platform上部署的第二项服务

在 Google Cloud Platform 上部署 Vue Build

如果我导入google.cloud.storage,则无法在Google Composer上部署DAG

.War可以在Windows上部署,但无法在Linux服务器(Tomcat 7)上部署

无法在GKE上部署Google云终端

无法使用Terraform在Cloud Run上部署公共api

无法在 IBM Cloud Lite 上部署 Node RED

Ubuntu服务器上的Docker无法在Azure上部署

在 Google Cloud 上部署 NodeJS、Puppeteer 和 Angular

无法从Google Cloud删除部署

服务帐户角色以部署Google Cloud功能

无法在OpenShift上部署

无法在Heroku上部署

无法从已部署的应用连接到Google Cloud SQL服务器

无法在Google App Engine上部署Java项目

KeystoneJS 应用程序无法在 Google App Engine 上部署

无法在Google Compute Engine上部署容器映像

无法在Cloud Foundry上部署helloworld spring-boot应用程序

在heroku服务器上部署项目时无法打我的nodejs api

在服务器上部署到IIS后Rotativa PDF无法正常工作

无法在一台特定服务器上部署战争

无法使用DHF 5.2.1在应用程序服务器上部署到SSL

无法在 Node JS 服务器上部署 React 应用程序

在服务器 IIS 7 上部署时 Websocket 无法连接

无法在Kubernetes POD上部署Spark历史记录服务器