Could not pull docker image in Kubernetes Pod from Google Container Registry

I read this question and this one and created the Kubernetes secret for Google Registry Container using a JSON service account with permissions: owner and viewer. I also confirmed that the image does exist in the Google Container Registry by going to the console.

I also read this document .

When I run:

minikube dashboard

And then from the user interface, I click "+" sybmol, specify the URL of my image as follows:

project-123456/bot-image

then click "Advanced Options" and specify the imported secret.

After a few seconds, I see this error:

Error: Status 403 trying to pull repository project-123456/bot-image: "Unable to access the repository: project-123456/bot-image; please verify that it exists and you have permission to access it (no valid credential was supplied)."

, (.dockerconfigjson), : { " https://us.gcr.io": { "email": "admin@domain.com", "auth": "longtexthere" }}

?

+4
1

json "{auths": json :

google, ?

, json :

{"auths":{"https://us.gcr.io": {"email": "admin@domain.com", "auth": "longtexthere"}}}

, minikube (0.17.1) minikube addons enable registry-creds , GCR

GCR yaml, :

apiVersion: v1
kind: Pod
metadata:
  name: foo
  namespace: default
spec:
  containers:
    - image: gcr.io/example-vm/helloworld:latest
      name: foo
+3

Source: https://habr.com/ru/post/1671305/


All Articles