Google cloud failing to pull its own image

3/16/2018

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?

-- Dijam
google-cloud-platform
kubernetes

1 Answer

3/21/2018

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}-compute@developer.gserviceaccount.com -> Editor

-- Dijam
Source: StackOverflow