How can a GKE cluster pull container images from a Container Registry hosted in another project?
I have a GKE cluster in project <reader-project>
trying to access a GCR image in project <registry-project>
.
I've tried adding the GCE service account email for <reader-project>
as a User with Reader access on the storage bucket in <registry-project>
, but I'm still getting the error:
<Error><Code>AccessDenied</Code>
<Message>Access denied.</Message>
<Details>Caller does not have storage.objects.get access to object us.artifacts.<registry-project>.appspot.com/containers/images/sha256:<tag>.
</Details></Error>