Version
- Kubectl : 1.30.1
- Kubelet : 1.30.1
- kubeadm : 1.30.1
- Containerd : 1.7.14
Facing a issue while connecting private repo with containerd, I am not able to pull image while creating a deployment in kubernets.
Write now my private registry is insecure (without username/password or without any certs).
I tried multiple combinations but failed to connect.
With crictl I am able to pull image . Command is:
- crictl pull k8s-war-machine:5000/flask-hello-world:latest
With ctr without --plain-http=true
facing same issue (Error: error=”failed to do request: Head “https://k8s-war-machine:5000/v2/flask-hello-world/manifests/latest”: http: server gave HTTP response to HTTPS client” host=”k8s-war-machine:5000″)
- ctr image pull k8s-war-machine:5000/flask-hello-world:latest
But with ctr image pull --plain-http=true k8s-war-machine:5000/flask-hello-world:latest
I am able to pull the image.
My main problem is why Kubernets is not able to pull the image and why I am getting the below error again an again.
Error: Failed 23s (x3 over 67s) kubelet Failed to pull image “k8s-war-machine:5000/flask-hello-world:latest”: failed to pull and unpack image “k8s-war-machine:5000/flask-hello-world:latest”: failed to resolve reference “k8s-war-machine:5000/flask-hello-world:latest”: failed to do request: Head “https://k8s-war-machine:5000/v2/flask-hello-world/manifests/latest”: http: server gave HTTP response to HTTPS client
Please help me out.