3

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?

1 Answer 1

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 user [email protected] with the repository my-repo in the location --us-central1, run:

gcloud artifacts repositories add-iam-policy-binding my-repo \
 --location=us-central1 --member=user:[email protected] --role=roles/artifactregistry.writer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .