kubernetes-up-and-running / kuard

Demo app for Kubernetes Up and Running book
Apache License 2.0
1.59k stars 543 forks source link

Can not create Pod #39

Closed powerofviva closed 1 year ago

powerofviva commented 3 years ago

Hi,

I am not able to create pod, I tried both yaml configuration and docker run (page 49 second edition). I am getting:

docker run -d --name kuard --publish 8080:8080 gcr.io/kuard-demo/kuard-amd64:blue Unable to find image 'gcr.io/kuard-demo/kuard-amd64:blue' locally docker: Error response from daemon: Head https://gcr.io/v2/kuard-demo/kuard-amd64/manifests/blue: unknown: Project 'project:kuard-demo' not found or deleted.

It is appreciated to let me know how to fix that issue.

powerofviva commented 3 years ago

Anyone is checking here?!

chrikoch commented 3 years ago

I think I'm having the same problem. Perhaps the Image is not public?

Events:
  Type     Reason     Age   From               Message
  ----     ------     ----  ----               -------
  Normal   Scheduled  2s    default-scheduler  Successfully assigned default/kuard to dev-03768
  Normal   Pulling    1s    kubelet            Pulling image "gcr.io/kuar-demo/kuard-am64:blue"
  Warning  Failed     1s    kubelet            Failed to pull image "gcr.io/kuar-demo/kuard-am64:blue": rpc error: code = Unknown desc = Error response from daemon: manifest for gcr.io/kuar-demo/kuard-am64:blue not found: manifest unknown: Failed to fetch "blue" from request "/v2/kuar-demo/kuard-am64/manifests/blue".
  Warning  Failed     1s    kubelet            Error: ErrImagePull
  Normal   BackOff    0s    kubelet            Back-off pulling image "gcr.io/kuar-demo/kuard-am64:blue"
  Warning  Failed     0s    kubelet            Error: ImagePullBackOff
ericsmalling commented 3 years ago

You appear to have misspelled the registry account name, it's kuar-demo not kuard-demo

Try docker run -d --name kuard --publish 8080:8080 gcr.io/kuar-demo/kuard-amd64:blue instead.

lachie83 commented 1 year ago

Resolved via this comment https://github.com/kubernetes-up-and-running/kuard/issues/39#issuecomment-916487491