Today I found the kubernetes pod shows error like this:
Failed to create pod sandbox: rpc error: code = DeadlineExceeded desc = failed to get sandbox image "registry.k8s.io/pause:3.6": failed to pull image "registry.k8s.io/pause:3.6": failed to pull and unpack image "registry.k8s.io/pause:3.6": failed to resolve reference "registry.k8s.io/pause:3.6": failed to do request: Head "https://us-west2-docker.pkg.dev/v2/k8s-artifacts-prod/images/pause/manifests/3.6": dial tcp 64.233.187.82:443: i/o timeout
Because of the network policy, I can not access the registry.k8s.io
. So I load the pause image into the server like this:
ctr -n=k8s.io image import /root/pause.tar
this is the image list:
[root@k8sslave01 ~]# ctr -n=k8s.io image list|grep "pause"
registry.k8s.io/pause:3.6 application/vnd.docker.distribution.manifest.v2+json sha256:79b611631c0d19e9a975fb0a8511e5153789b4c26610d1842e9f735c57cc8b13 669.8 KiB linux/amd64 io.cri-containerd.image=managed
[root@k8sslave01 ~]#
it worked for weeks but today it seems like it did not pull from local first. is it possible to fix this issue?