Cluster information:
Kubernetes version: v1.30.0
Cloud being used: bare-metal
Installation method: minikube
Host OS: Ubuntu 18.04.4 LTS
CNI and version: NA
CRI and version: NA
I’m trying out kubernetes using minikube. When I try to do a deployment, I’m getting the below error,
Type Reason Age From Message
Normal Scheduled 31s default-scheduler Successfully assigned default/nginx-deployment-7745d7cf5c-v7d68 to minikube
Normal Pulling 29s kubelet Pulling image “nginx”
Warning Failed 14s kubelet Failed to pull image “nginx”: Error response from daemon: Get “https://registry-1.docker.io/v2/”: dial tcp 54.236.113.205:443: i/o timeout
Warning Failed 14s kubelet Error: ErrImagePull
Normal BackOff 14s kubelet Back-off pulling image “nginx”
Warning Failed 14s kubelet Error: ImagePullBackOff
However, docker pull works fine and able to pull the images,
root@pf04:~# docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
nginx latest 7383c266ef25 5 days ago 188MB
Google Cloud console v0.0.43 619d67e74933 10 days ago 1.26GB
hello-world latest d2c94e258dcb 12 months ago 13.3kB
nginx 1.14.2 295c7be07902 5 years ago 109MB
I even tried setting the imagePullPolicy to IfNotPresent in my deployment file. But it still tries to pull the image and fails with the same error.
I tried setting the public DNS 8.8.8.8 in /etc/resolv.conf but still no use.
ping to registry-1.docker.io resolves to IP and no response. nslookup to registry-1.docker.io works.
Regards,
Srini