luksa/kubernetes-in-action

Chapter 6: Fortune Image seem to be failing during pull

georemo opened this issue · 1 comments

Hi,
Pulling the image luksa/fortune seem to be failing. Below is excerpts of kubectl while trying the example:

$ kubectl create -f fortune-pod.yaml
pod/fortune created
$ kubectl port-forward fortune 8080:80
error: unable to forward port because pod is not running. Current status=Pending
$ kubectl get pod
NAME      READY   STATUS             RESTARTS   AGE
fortune   1/2     ImagePullBackOff   0          37m
$ kubectl logs fortune
Defaulted container "html-generator" out of: html-generator, web-server
Error from server (BadRequest): container "html-generator" in pod "fortune" is waiting to start: trying and failing to pull image

You can actually download the original image by this command:

docker run -it docker.io/luksa/fortune:args