【问题标题】:GCP Vertex AI Service Agent access to GCR image ErrorGCP Vertex AI Service Agent 访问 GCR 图像错误
【发布时间】:2022-08-02 15:20:30
【问题描述】:

我收到以下错误。 有谁知道如何解决它?

Failed to create pipeline job. Error: Vertex AI Service Agent 
\'XXXXX@gcp-sa-aiplatform-cc.iam.gserviceaccount.com\' should be granted
 access to the image gcr.io/gcp-project-id/application:latest
  • 根据doc,您可以将角色/storage.objectViewer、角色/storage.legacyBucketWriter 和角色/storage.admin 分配给您的服务帐户,以使用服务帐户访问您在 Container Registry 中的图像。
  • 如果我的回答解决了您的问题,请考虑接受并支持它。如果没有,请告诉我,以便我改进答案。
  • 我尝试了同样的事情它对我不起作用你是如何解决它的 rituraj / shipra

标签: google-cloud-platform google-cloud-vertex-ai


【解决方案1】:

此错误可能是由于缺少将镜像拉取和推送到 Container Registry 的角色或权限。必须为与 Container Registry 交互的所有用户和服务帐户授予 Cloud Storage 适当的权限。您可以将角色/storage.objectViewer、角色/storage.legacyBucketWriter 和角色/storage.admin 分配给您的服务帐户,以使用服务帐户访问您在 Container Registry 中的映像。您可以按照此doc 为服务帐户提供适当的角色和权限。

【讨论】:

    【解决方案2】:

    {PROJECT_NUMBER}@gcp-sa-aiplatform-cc.iam.gserviceaccount.com 是谷歌的AI Platform service agent。 此服务代理需要访问权限才能从项目的 gcr 中读取/拉取 docker 映像,以创建用于管道运行的容器。

    如果您有权限编辑IAM roles,您可以尝试将Artifact Registry roles添加到上述服务代理。 您可以从添加roles/artifactregistry.reader 开始。

    希望这可以帮助 :)

    【讨论】:

      猜你喜欢
      • 2023-02-02
      • 2021-12-09
      • 2021-09-28
      • 2022-08-18
      • 2023-02-15
      • 2022-01-05
      • 1970-01-01
      • 2022-12-10
      • 2022-10-17
      相关资源
      最近更新 更多