Skip to content

新添加节点containerd服务没有读取/etc/containerd/config.toml里sandbox_image,而是依然下载registry.k8s.io/pause:3.8 #2559

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

Open
asianuxchina opened this issue May 11, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@asianuxchina
Copy link

asianuxchina commented May 11, 2025

openeuler 24.03 sp1

kubekey 3.1.9

1、containerd的配置/etc/containerd/config.toml里sandbox_image已经替换为registry.aliyuncs.com/google_containers/pause:3.9。

2、执行新添加节点执行过程没有报错,但是新添加节点pod一直处于pending状态。

3、排查新节点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](https://registry.k8s.io/v2/pause/manifests/3.8%5C)": dial tcp [::]:443: i/o timeout"
containerd服务加载默认配置去下载registry.k8s.io/pause:3.8,没有读取/etc/containerd/config.toml里定义sandbox_image=registry.aliyuncs.com/google_containers/pause:3.9,执行systemctl restart containerd后能够恢复,containerd读取/etc/containerd/config.toml配置,pod能正常启动。

4、能否在执行添加节点后增加一次containerd服务重启操作?在哪里配置能够实现添加节点后containerd强制执行一次重启服务加载/etc/containerd/config.toml。

@asianuxchina asianuxchina added the bug Something isn't working label May 11, 2025
@asianuxchina asianuxchina changed the title 新添加节点containerd获取registry.k8s.io/pause:3.8 新添加节点containerd服务没有读取/etc/containerd/config.toml里sandbox_image,而是依然下载registry.k8s.io/pause:3.8 May 11, 2025
@skyhhjmk
Copy link

尝试设置环境变量以让kubekey使用镜像源

export KKZONE=cn

@redscholar
Copy link
Collaborator

@asianuxchina 是新增的节点,已经安装过了containerd么。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants