luksa / kubernetes-in-action

Code from the Kubernetes in Action book

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ch8 : ErrImagePull when create pod with curl.yaml

906798724 opened this issue · comments

when i create pod with curl.yaml, I got an error

controlplane $ k get pod
NAME   READY   STATUS         RESTARTS   AGE
curl   0/1     ErrImagePull   0          5s

here is the events:

Events:
  Type     Reason     Age               From                   Message
  ----     ------     ----              ----                   -------
  Normal   Scheduled  18s               default-scheduler      Successfully assigned default/curl to controlplane
  Normal   BackOff    16s               kubelet, controlplane  Back-off pulling image "tutum/curl"
  Warning  Failed     16s               kubelet, controlplane  Error: ImagePullBackOff
  Normal   Pulling    3s (x2 over 18s)  kubelet, controlplane  Pulling image "tutum/curl"
  Warning  Failed     2s (x2 over 16s)  kubelet, controlplane  Failed to pull image "tutum/curl": rpc error: code = Unknown desc = Error response from daemon: pull access denied for tutum/curl, repository does not exist or may require 'docker login'
  Warning  Failed     2s (x2 over 16s)  kubelet, controlplane  Error: ErrImagePull

looks like image tutum/curl not exists, what can I do to handle this error?