【发布时间】:2023-03-07 20:27:01
【问题描述】:
我已阅读此question 和此one,并使用具有项目的服务帐户 JSON 密钥为 Google Container Registry 创建了我的 Kubernetes 密钥:所有者和查看者权限。我还通过控制台验证了该图像确实存在于 Google Container Registry 中。
我也读过这个document。
当我跑步时:
minikube dashboard
然后在用户界面中,单击“+”sybmol,指定我的图像的 URL,如下所示:
project-123456/bot-image
然后点击“高级选项”并指定导入的 Secret。
几秒钟后我看到了这个错误:
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)."
如果我查看 Secret 文件 (.dockerconfigjson) 中的内容,就会发现: {"https://us.gcr.io": {"email": "admin@domain.com", "auth": "longtexthere"}}
可能是什么问题?
【问题讨论】:
标签: google-cloud-platform google-container-registry