0

i installed the k8s dashboard follows as github dashboard address.

kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.2.0/aio/deploy/recommended.yaml

and output of

kubectl get pods --all-namespaces

kubernetes-dashboard   dashboard-metrics-scraper-79c5968bdc-64wl9   0/1     ImagePullBackOff   0          48m
kubernetes-dashboard   kubernetes-dashboard-9f9799597-w9cp9         1/1     Running            0          48m

and output of kubectl describe pod is

  Normal   Scheduled  41m                 default-scheduler  Successfully assigned kubernetes-dashboard/dashboard-metrics-scraper-79c5968bdc-64wl9 to lab-vm
  Normal   Pulling    30m (x4 over 41m)   kubelet            Pulling image "kubernetesui/metrics-scraper:v1.0.6"
  Warning  Failed     27m (x7 over 37m)   kubelet            Error: ImagePullBackOff

  Warning  Failed     24m (x5 over 37m)   kubelet            Failed to pull image "kubernetesui/metrics-scraper:v1.0.6": rpc error: code = Unknown desc = failed to pull and unpack image "docker.io/kubernetesui/metrics-scraper:v1.0.6": failed to resolve reference "docker.io/kubernetesui/metrics-scraper:v1.0.6": unexpected status code [manifests v1.0.6]: 408 Request Time-out
  Warning  Failed     10m (x7 over 37m)   kubelet            Error: ErrImagePull
  Normal   BackOff    81s (x73 over 37m)  kubelet            Back-off pulling image "kubernetesui/metrics-scraper:v1.0.6"

Please help me to fix this issue. thanks a lot.

ramond
  • 1
  • 1
    Hi ramond, welcome to SO. It sounds like you may have a proxy between your cluster and the outside world. What steps have you already tried to troubleshoot this yourself? If you ssh into lab-vm, are you able `docker pull` the image but kubelet cannot? – mdaniel Apr 03 '21 at 17:25
  • thanks.i will be check. – ramond Apr 03 '21 at 17:30
  • Hi Ramond, How did you fix this issue ? Im facing exact problem. I am able to pull image using docker pull, but kubectl apply fails. cc: @mdaniel – bijoshtj Dec 01 '21 at 11:46
  • Please don't squat on other people's questions, not the very least of why is because you could not "accept" a working answer that was posted on ramond's question. Asking new questions is free, although with the caveat that you will want to [use the search feature](https://stackoverflow.com/search?q=%5Bkubernetes%5D+ErrImagePull) first – mdaniel Dec 01 '21 at 16:41

0 Answers0