新增工作节点,拉取镜像失败
What is version of KubeKey has the issue?
3.1.7
What is your os environment?
almalinux 9.4
KubeKey config file
A clear and concise description of what happend.
问题描述: 执行了export KKZONE=cn 命令,还是从海外下载镜像。
详情:集群安装好,三个master节点,一个工作节点,需要是新增一个工作节点。方法是
- 编辑config-sample.yaml文件,添加工作节点信息
- 在所有节点上都执行了
export KKZONE=cn命令 - 在master节点上执行命令,
./kk add nodes -f config-sample.yaml
出现的问题是: 新增的工作节点上拉取镜像还是用的https://registry-1.docker.io/xxxx地址。其中一条日志如下:
level=error msg="RunPodSandbox for &PodSandboxMetadata{Name:haproxy-worker2,Uid:5047f80b977eb033ba1d4efd33c11eb1,Namespace:kube-system,Attempt:0,} failed, error" error="rpc error: code = Canceled desc = failed to get sandbox image \"kubesphere/pause:3.9\": failed to pull image \"kubesphere/pause:3.9\": failed to pull and unpack image \"docker.io/kubesphere/pause:3.9\": failed to resolve reference \"docker.io/kubesphere/pause:3.9\": failed to do request: Head \"https://registry-1.docker.io/v2/kubesphere/pause/manifests/3.9\": context canceled"
Relevant log output
Additional information
No response
同样的问题
你和我一样的问题,不过我是在单节点测试然后添加现有集群出现的,后面看了添加集群需要配置
global: imageRegistry: swr.cn-southwest-2.myhuaweicloud.com/ks
kubekey 3.1.9 集群新添加节点containerd服务报level=error msg="RunPodSandbox for &PodSandboxMetadata{Name:haproxy-worker-2,Namespace:kube-system,Attempt:0,} failed, error" error="failed to get sandbox image "registry.k8s.io/pause:3.8": failed to pull image "registry.k8s.io/pause:3.8": failed to pull and unpack image "registry.k8s.io/pause:3.8": failed to resolve reference "registry.k8s.io/pause:3.8": failed to do request: Head "https://registry.k8s.io/v2/pause/manifests/3.8": dial tcp [::]:443: i/o timeout"