IBM / container-service-getting-started-wt

Other
95 stars 212 forks source link

Lab 2 scale failed "ImagePullBackOff" #125

Closed yiyigit closed 4 years ago

yiyigit commented 4 years ago

I've finished Lab 1 successfully.

And I get deployment "hello-world" scaled no problem. But my rollout didn't succeed. it waited for rollout forever and then showed me error. I tried debugging by running ibmcloud cr images, it shows us.icr.io/yiyitest1/hello-world 1 de2d7cdc2e87 yiyitest1 18 hours ago 27 MB No Issues

and by running kubectl get pods , it shows hello-world-7bd7f9c949-9dx54 0/1 ImagePullBackOff 0 14h*10.

by running kubectl describe pod hello-world-7bd7f9c949-9dx54 it shows `Name: hello-world-7bd7f9c949-9dx54 Namespace: default Priority: 0 Node: 10.144.213.119/10.144.213.119 Start Time: Wed, 17 Jun 2020 18:30:29 -0700 Labels: pod-template-hash=7bd7f9c949 run=hello-world Annotations: kubernetes.io/psp: ibm-privileged-psp Status: Pending IP: 172.30.254.227 IPs: IP: 172.30.254.227 Controlled By: ReplicaSet/hello-world-7bd7f9c949 Containers: hello-world: Container ID:
Image: us.icr.io/yiyitest1/hello-world Image ID:
Port: Host Port: State: Waiting Reason: ImagePullBackOff Ready: False Restart Count: 0 Environment: Mounts: /var/run/secrets/kubernetes.io/serviceaccount from default-token-lrbvt (ro) Conditions: Type Status Initialized True Ready False ContainersReady False PodScheduled True Volumes: default-token-lrbvt: Type: Secret (a volume populated by a Secret) SecretName: default-token-lrbvt Optional: false QoS Class: BestEffort Node-Selectors: Tolerations: node.kubernetes.io/not-ready:NoExecute for 600s node.kubernetes.io/unreachable:NoExecute for 600s Events: Type Reason Age From Message


Normal BackOff 43m (x3728 over 14h) kubelet, 10.144.213.119 Back-off pulling image "us.icr.io/yiyitest1/hello-world" Warning Failed 3m58s (x3902 over 14h) kubelet, 10.144.213.119 Error: ImagePullBackOff`

I wonder if it matters that I am using a free cluster in ibm cloud.

yiyigit commented 4 years ago

later fixed it by specifying image in hello-world:1