We have a (GKE) kubernetes cluster running in "project A" that needs to get images from an artifact registry that is located in another project, B. How can I configure the project A GKE cluster to have access to pull images from the artifact registry in project B?
Asked
Active
Viewed 3,248 times
1 Answers
0
You can pull images from the Artifact registry in another project.
If GKE is in a different project than Artifact Registry, grant the required permissions to the service account.
For example, to add an IAM policy binding for the role
roles/artifactregistry.writer
for the userwrite@gmail.com
with the repositorymy-repo
in the location--us-central1
, run:
gcloud artifacts repositories add-iam-policy-binding my-repo \
--location=us-central1 --member=user:write@gmail.com --role=roles/artifactregistry.writer

Wojtek_B
- 1,013
- 4
- 14