DNS error, failed to create pod sandbox, failed to get k8s.gcr.io/pause:3.5
dg424 opened this issue · comments
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 ?
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"