Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

403 Forbidden ImagePullBackOff

im using cloudbuild pipeline to deploy some k8s app to gke cluster and im getting this error from the pods after build passed:
failed to authorize: failed to fetch oauth token: unexpected status from GET request to ***artifact registry***: 403 Forbidden.
i created a service account with enough permission and attached it to my k8s deployment but it didn't help.
i tried to pull the image locally and first try it failed i checked my artifact registry and saw that i need to configure it and it worked 2nd time.
this is a gke autopilot cluster.
what should i do further to solve this matter?
Screenshot from 2025-01-08 14-42-07.png

0 1 403
1 REPLY 1

Hi @aridin15,

Could you please check if you’re using the correct service account for the GKE cluster created with Autopilot? Also, ensure that the service account has the necessary privileges to pull images from the Artifact Registry.

Regards,
Mokit

Top Labels in this Space