rootless-containers / usernetes

Kubernetes without the root privileges
https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/2033-kubelet-in-userns-aka-rootless
Apache License 2.0
855 stars 58 forks source link

DNS error, failed to create pod sandbox, failed to get k8s.gcr.io/pause:3.5 #240

Closed dg424 closed 2 years ago

dg424 commented 2 years ago

Hi,

So, I'm getting the following error:

FailedCreatePodSandBox 30s kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to get sandbox image "k8s.gcr.io/pause:3.5": failed to pull image "k8s.gcr.io/pause:3.5": failed to pull and unpack image "k8s.gcr.io/pause:3.5": failed to resolve reference "k8s.gcr.io/pause:3.5": failed to do request: Head "https://k8s.gcr.io/v2/pause/manifests/3.5"

I pulled and loaded the image locally, but it's still trying to download externally as opposed to using the existing image already downloaded. Any ideas ?

dg424 commented 2 years ago

Found solution. As we're using a custom registry, in /home/user/usernetes/boot/containerd.sh, need to add the following:

[plugins."io.containerd.grpc.v1.cri"] sandbox_image = "mycustomrepo/pause:3.5"