rootless-containers / usernetes

Kubernetes without the root privileges

Home Page:https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/2033-kubelet-in-userns-aka-rootless

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

dg424 opened this issue · comments

commented

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 ?

commented

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"