easzlab / kubeasz

使用Ansible脚本安装K8S集群,介绍组件交互原理,方便直接,不受国内网络环境影响
https://github.com/easzlab/kubeasz
10.54k stars 3.53k forks source link

All-in-one发生报错,node is noReady #1427

Open sunminming opened 19 hours ago

sunminming commented 19 hours ago

What happened? 发生了什么问题?

执行all-in-one脚本时,节点一直处于notready状态导致执行失败。kubelet日志如下:

root@k8s-10-10-40-34:/home/sunminming# journalctl -u kubelet -f
11月 24 00:20:38 k8s-10-10-40-34 kubelet[12447]: E1124 00:20:38.181949   12447 kubelet.go:2900] "Container runtime network not ready" networkReady="NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized"
11月 24 00:20:43 k8s-10-10-40-34 kubelet[12447]: E1124 00:20:43.183088   12447 kubelet.go:2900] "Container runtime network not ready" networkReady="NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized"
11月 24 00:20:48 k8s-10-10-40-34 kubelet[12447]: E1124 00:20:48.184364   12447 kubelet.go:2900] "Container runtime network not ready" networkReady="NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized"
11月 24 00:20:53 k8s-10-10-40-34 kubelet[12447]: E1124 00:20:53.186022   12447 kubelet.go:2900] "Container runtime network not ready" networkReady="NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized"
11月 24 00:20:58 k8s-10-10-40-34 kubelet[12447]: E1124 00:20:58.187547   12447 kubelet.go:2900] "Container runtime network not ready" networkReady="NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized"
11月 24 00:21:03 k8s-10-10-40-34 kubelet[12447]: E1124 00:21:03.189435   12447 kubelet.go:2900] "Container runtime network not ready" networkReady="NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized"
11月 24 00:21:08 k8s-10-10-40-34 kubelet[12447]: E1124 00:21:08.192488   12447 kubelet.go:2900] "Container runtime network not ready" networkReady="NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized"
11月 24 00:21:13 k8s-10-10-40-34 kubelet[12447]: E1124 00:21:13.193692   12447 kubelet.go:2900] "Container runtime network not ready" networkReady="NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized"

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

节点状态Ready,cni pod正常启动

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

按教程执行脚本

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

No response

Kubernetes version k8s 版本

kubernetes: v1.30.1

Kubeasz version

3.6.4

OS version 操作系统版本

```console # On Linux: $ cat /etc/os-release # paste output here $ uname -a # paste output here ``` root@k8s-10-10-40-34:/home/sunminming# cat /etc/os-release PRETTY_NAME="Ubuntu 22.04.4 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.4 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=jammy

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

*** Component Version ********************* ******************************************* * kubernetes: v1.30.1 * etcd: v3.5.12 * calico: v3.26.4 *******************************************
sunminming commented 19 hours ago

root@k8s-10-10-40-34:/home/sunminming# uname -a Linux k8s-10-10-40-34 6.5.0-18-generic #18~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 7 11:40:03 UTC 2 x86_64 x86_64 x86_64 GNU/Linux