小编Col*_*ick的帖子

gcr.io 上的 GKE imagePullBackOff

我尝试使用 gcr.io 在 GKE 上设置我自己的容器并不断出现 ImagePullBackOff 失败。

认为我做错了什么,我回到这里的教程https://cloud.google.com/kubernetes-engine/docs/tutorials/hello-app并按照所有步骤操作并得到相同的错误。这看起来像是一个凭证问题,但我按照教程的所有步骤操作,但仍然没有运气。

我如何调试此错误,因为日志似乎没有帮助。

教程工作的第 1-4 步。

kubectl run hello-web --image=gcr.io/${PROJECT_ID}/hello-app:v1 --port 8080
Run Code Online (Sandbox Code Playgroud)

ImagePullBackOff 失败我认为 GKE 和 gcr.io 会自动处理凭据。我究竟做错了什么?我该如何调试?

kubectl describe pods hello-web-6444d588b7-tqgdm

Name:           hello-web-6444d588b7-tqgdm
Namespace:      default
Node:           gke-aia-default-pool-9ad6a2ee-j5g7/10.152.0.2
Start Time:     Sat, 27 Oct 2018 06:51:38 +1000
Labels:         pod-template-hash=2000814463
                run=hello-web
Annotations:    kubernetes.io/limit-ranger=LimitRanger plugin set: cpu request for container hello-web
Status:         Pending
IP:             10.12.2.5
Controlled By:  ReplicaSet/hello-web-6444d588b7
Containers:
hello-web:
    Container ID:   
    Image:          gcr.io/<project-id>/hello-app:v1
    Image ID:       
    Port:           8080/TCP
    Host Port:      0/TCP
    State:          Waiting
    Reason:       ImagePullBackOff …
Run Code Online (Sandbox Code Playgroud)

credentials google-kubernetes-engine

7
推荐指数
2
解决办法
6978
查看次数