将 Google Container Registry 容器从另一个 GCP 项目拉入 Google Kubernetes Engine

Wun*_*ead 2 containers docker google-cloud-platform kubernetes google-kubernetes-engine

我希望将一个容器从存在于一个 Google Cloud Platform 项目中的 Google Container Registry 提取到存在于单独 GCP 项目中的 Google Kubernetes Engine 集群中。

这里有一个很好的资源:https : //medium.com/hackernoon/today-i-learned-pull-docker-image-from-gcr-google-container-registry-in-any-non-gcp-kubernetes- 5f8298f28969但它包括非 GCP 项目的复杂性。我的猜测是有一种更简单的方法,因为这里的所有内容都驻留在 Google Cloud Platform 中。

谢谢,

Vil*_*nne 5

https://medium.com/google-cloud/using-single-docker-repository-with-multiple-gke-projects-1672689f780c

这篇 Medium 帖子似乎描述了您正在尝试做的事情。简而言之:您需要向想要从其他项目的注册表中提取图像的集群的服务帐户授予“存储对象查看器”IAM 权限。角色的名称并不完全直观,但当您考虑到图像存储在云存储中时,该名称是有道理的。