-
Notifications
You must be signed in to change notification settings - Fork 716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
registry.k8s.io/pause:3.6 does not use the address specified by --image-repository when executing kubeadm init #2851
Comments
Check your containerd configuration. |
我也遇到了和你类似的问题,我的解决方案如下:
接着编辑/etc/containerd/config.toml文件,把
接着重启服务,重新init即可:
|
我修改了这个配置怎么一直都不生效呢 |
sandbox_image = "registry.cn-hangzhou.aliyuncs.com/google_containers/pause:3.6" |
Is this a bug? i'm using docker, not containerd , how to fix it on user side? |
this is not a bug, it's just a matter of configuration, shouldn't docker use containerd as the runtime by default? |
k8s maintainers recommend to move to containerd or cri-o. |
义父!!!!!!!!!!!!!!!!! |
困扰了半个月...换了一堆源,原来在这里。。 |
我也是这个问题,不过是在集群运行过程中无法拉取。修改了配置不生效不知道是什么原因。 |
给后来的朋友记录一下我的情况 【环境】 使用cri为cri-dockerd,已经修改
【问题】 master
【Solution】 最后定位原因是worker未重启cri-dockerd进程使配置生效:
重启后worker重新join即可:
|
you probably need to tell cri-dockerd to use exactly that image. |
义父+1!!! |
Is this a BUG REPORT or FEATURE REQUEST?
BUG REPORT
What happened?
kubeadm init ...... --image-repository registry.aliyuncs.com/google_containers
, it show :[wait-control-plane] Waiting for the kubelet to boot up the control plane as static Pods from directory /etc/kubernetes/manifests". This can take up to 4m0s
[kubelet-check] Initial timeout of 40s passed.
systemctl status -l kubelet.service
, it show :remote_runtime.go:176] "RunPodSandbox from runtime service failed" err="rpc error: code = Unknown 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://registry.k8s.io/v2/pause/manifests/3.6\": net/http: TLS handshake timeout"
What did you expect to happen?
I hope that
registry.k8s.io/pause:3.6
will be downloaded through the address specified by--image-repository
How can we reproduce it (as minimally and precisely as possible)?
registry.k8s.io
kubeadm init --control-plane-endpoint=192.168.220.101 --kubernetes-version v1.26.3 --pod-network-cidr=10.244.0.0/16 --image-repository registry.aliyuncs.com/google_containers
Anything else we need to know?
I need to execute the following code on each node to solve the problem
Kubernetes version
OS version
The text was updated successfully, but these errors were encountered: