Dijam
Dijam

Reputation: 167

Google cloud failing to pull its own image

I am trying to test google cloud kubernetes. I created a cluster (all default setting) and pushed my docker image to gc image registry. When in workload I try to deploy the image, it gives me this error:

Pod errors: ImagePullBackOff

I tried to search around but all of the problems are related to when you have your docker registry outside google/kubernetes.

Any idea?

Upvotes: 0

Views: 640

Answers (1)

Dijam
Dijam

Reputation: 167

Tnx for the guides. I found the solution for my problem. It was all about correct permissions for different services. As I messed up (deleted/updated) my services permissions, it failed even to create cluster. I created a new project and compared permissions created there with my current one and found out the missing permissions.

These are the required permissions in order to make a cluster and deploy an image to it:

service-{projectID}@containerregistry.iam.gserviceaccount.com -> Editor

service-{projectID}@container-engine-robot.iam.gserviceaccount.com -> Editor

{projectID}@cloudservices.gserviceaccount.com -> Editor

{projectID}[email protected] -> Editor

Upvotes: 0

Related Questions