Skip to content
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

添加节点会导致所有Pod重建 #1447

Open
gogeof opened this issue Feb 17, 2025 · 0 comments · May be fixed by #1448
Open

添加节点会导致所有Pod重建 #1447

gogeof opened this issue Feb 17, 2025 · 0 comments · May be fixed by #1448

Comments

@gogeof
Copy link

gogeof commented Feb 17, 2025

What happened? 发生了什么问题?

在已有的集群上添加新的节点:./ezctl add-node <集群名称> <节点IP> k8s_nodename='<节点名称>'

会导致所有 Pod 重建:
Image

我使用的是 3.6 分支,网络插件使用 kube-ovn。

What did you expect to happen? 期望的结果是什么?

添加节点不会影响已有运行中的 Pod。

How can we reproduce it (as minimally and precisely as possible)? 尽可能最小化、精确地描述如何复现问题

检查发现,这是因为添加节点会执行网络插件安装:
Image

在 kube-ovn 的安装过程中会执行 install.sh 脚本:
Image

在 install.sh 脚本中,会自动重建非使用 host 网络的所有 Pod:
Image

Anything else we need to know? 其他需要说明的情况

No response

Kubernetes version k8s 版本

k8s: v1.29

Kubeasz version

v3.6

OS version 操作系统版本

On Linux: 麒麟 arm64 V10 操作系统

Related plugins (CNI, CSI, ...) and versions (if applicable) 其他网络插件等需要说明的情况

使用 kube-ovn 插件
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant