kubernetes ErrImagePull after I manually "docker pull"

1/8/2020

When I helm install stable/hadoop,it reports this error:

Failed to pull image "danisla/hadoop:2.9.0": rpc error: code = Unknown desc = Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

so, I manually docker pull danisla/hadoop:2.9.0, but it didn't work.

The imagePullPolicy is IfNotPresent

-- Mr. Chen
docker
kubernetes
kubernetes-helm

1 Answer

1/8/2020

You need to pull the image on all nodes with your approach.

Ideally you need to setup the registry to work with your cluster. If you need to authenticate to your registry, you can can create a secret and use ImagePullSecret.

https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/#log-in-to-docker

-- Shashank V
Source: StackOverflow