创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
例如:虚拟机,Centos7.9,32C/64G
Kubernetes版本信息
Client Version: version.Info{Major:“1”, Minor:“21”, GitVersion:“v1.21.5”, GitCommit:“aea7bbadd2fc0cd689de94a54e5b7b758869d691”, GitTreeState:“clean”, BuildDate:“2021-09-15T21:10:45Z”, GoVersion:“go1.16.8”, Compiler:“gc”, Platform:“linux/amd64”}
Server Version: version.Info{Major:“1”, Minor:“21”, GitVersion:“v1.21.5”, GitCommit:“aea7bbadd2fc0cd689de94a54e5b7b758869d691”, GitTreeState:“clean”, BuildDate:“2021-09-15T21:04:16Z”, GoVersion:“go1.16.8”, Compiler:“gc”, Platform:“linux/amd64”}
容器运行时
将 docker version
/ crictl version
/ nerdctl version
结果贴在下方
Client: Docker Engine - Community
Version: 20.10.12
API version: 1.41
Go version: go1.16.12
Git commit: e91ed57
Built: Mon Dec 13 11:45:41 2021
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.12
API version: 1.41 (minimum version 1.12)
Go version: go1.16.12
Git commit: 459d0df
Built: Mon Dec 13 11:44:05 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.12
GitCommit: 7b11cfaabd73bb80907dd23182b9347b4245eb5d
runc:
Version: 1.0.2
GitCommit: v1.0.2-0-g52b36a2
docker-init:
Version: 0.19.0
GitCommit: de40ad0
KubeSphere版本信息
例如:v3.3.1 全新安装
问题是什么
v3.2.1安装出错,需要手工拷贝master的/run/systemd/resolv.conf到worker节点,才可以安装成功
报错摘要如下:
Jan 06 10:40:52 worker1 kubelet[25457]: E0106 10:40:52.139408 25457 kubelet.go:2211] “Container runtime network not ready” networkReady="NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni coJan 06 10:40:51 worker1 kubelet[25457]: E0106 10:40:51.156442 25457 pod_workers.go:190] “Error syncing pod, skipping” err="failed to \“CreatePodSandbox\” for \“cilium-9wdrw_kube-system(b30c66a8-2b55-4eae-b46f-7d3ca1c0fae1)\” with CreateJan 06 10:40:51 worker1 kubelet[25457]: E0106 10:40:51.156256 25457 pod_workers.go:190] “Error syncing pod, skipping” err="failed to \“CreatePodSandbox\” for \“kube-proxy-mc7dw_kube-system(71bf2f35-61b8-4bb1-a01a-dc407e4875ea)\” with CrJan 06 10:40:51 worker1 kubelet[25457]: E0106 10:40:51.156243 25457 kuberuntime_manager.go:790] “CreatePodSandbox for pod failed” err=“open /run/systemd/resolve/resolv.conf: no such file or directory” pod=“kube-system/cilium-9wdrw”
Jan 06 10:40:51 worker1 kubelet[25457]: E0106 10:40:51.156068 25457 kuberuntime_sandbox.go:41] “Failed to generate sandbox config for pod” err=“open /run/systemd/resolve/resolv.conf: no such file or directory” pod="kube-system/cilium-9wJan 06 10:40:51 worker1 kubelet[25457]: E0106 10:40:51.156138 25457 kuberuntime_manager.go:790] “CreatePodSandbox for pod failed” err=“open /run/systemd/resolve/resolv.conf: no such file or directory” pod=“kube-system/kube-proxy-mc7dw” Jan 06 10:40:51 worker1 kubelet[25457]: E0106 10:40:51.156041 25457 kuberuntime_sandbox.go:41] “Failed to generate sandbox config for pod” err=“open /run/systemd/resolve/resolv.conf: no such file or directory” pod="kube-system/kube-proxJan 06 10:40:50 worker1 kubelet[25457]: E0106 10:40:50.155436 25457 pod_workers.go:190] “Error syncing pod, skipping” err="failed to \“CreatePodSandbox\” for \“nodelocaldns-dt664_kube-system(f4841504-5cc7-4842-8b66-41bc43015dd6)\” with Jan 06 10:40:50 worker1 kubelet[25457]: E0106 10:40:50.155274 25457 kuberuntime_manager.go:790] “CreatePodSandbox for pod failed” err=“open /run/systemd/resolve/resolv.conf: no such file or directory” pod="kube-system/nodelocaldns-dt664Jan 06 10:40:50 worker1 kubelet[25457]: E0106 10:40:50.155190 25457 kuberuntime_sandbox.go:41] “Failed to generate sandbox config for pod” err=“open /run/systemd/resolve/resolv.conf: no such file or directory” pod="kube-system/nodelocalJan 06 10:40:49 worker1 kubelet[25457]: I0106 10:40:49.227049 25457 cni.go:239] “Unable to update cni config” err=“no networks found in /etc/cni/net.d”
Jan 06 10:40:47 worker1 kubelet[25457]: E0106 10:40:47.114289 25457 kubelet.go:2211] “Container runtime network not ready” networkReady="NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni coJan 06 10:40:44 worker1 kubelet[25457]: I0106 10:40:44.226215 25457 cni.go:239] “Unable to update cni config” err=“no networks found in /etc/cni/net.d”
Jan 06 10:40:43 worker1 kubelet[25457]: E0106 10:40:43.156915 25457 pod_workers.go:190] “Error syncing pod, skipping” err="failed to \“CreatePodSandbox\” for \"cilium-operator-8567457f7b-qkpbq_kube-system(3db957e2-32c3-4c4e-8346-b4426b6Jan 06 10:40:43 worker1 kubelet[25457]: E0106 10:40:43.156634 25457 kuberuntime_manager.go:790] “CreatePodSandbox for pod failed” err=“open /run/systemd/resolve/resolv.conf: no such file or directory” pod="kube-system/cilium-operator-85Jan 06 10:40:43 worker1 kubelet[25457]: E0106 10:40:43.156517 25457 kuberuntime_sandbox.go:41] “Failed to generate sandbox config for pod” err=“open /run/systemd/resolve/resolv.conf: no such file or directory” pod="kube-system/cilium-opJan 06 10:40:42 worker1 kubelet[25457]: E0106 10:40:42.088992 25457 kubelet.go:2211] “Container runtime network not ready” networkReady="NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni coJan 06 10:40:40 worker1 kubelet[25457]: E0106 10:40:40.155721 25457 pod_workers.go:190] “Error syncing pod, skipping” err="failed to \“CreatePodSandbox\” for \“cilium-9wdrw_kube-system(b30c66a8-2b55-4eae-b46f-7d3ca1c0fae1)\” with CreateJan 06 10:40:40 worker1 kubelet[25457]: E0106 10:40:40.155523 25457 kuberuntime_manager.go:790] “CreatePodSandbox for pod failed” err=“open /run/systemd/resolve/resolv.conf: no such file or directory” pod=“kube-system/cilium-9wdrw”
Jan 06 10:40:40 worker1 kubelet[25457]: E0106 10:40:40.155411 25457 kuberuntime_sandbox.go:41] “Failed to generate sandbox config for pod” err=“open /run/systemd/resolve/resolv.conf: no such file or directory” pod="kube-system/cilium-9wJan 06 10:40:39 worker1 kubelet[25457]: I0106 10:40:39.225606 25457 cni.go:239] “Unable to update cni config” err=“no networks found in /etc/cni/net.d”
Jan 06 10:40:37 worker1 kubelet[25457]: E0106 10:40:37.155836 25457 pod_workers.go:190] “Error syncing pod, skipping” err="failed to \“CreatePodSandbox\” for \“kube-proxy-mc7dw_kube-system(71bf2f35-61b8-4bb1-a01a-dc407e4875ea)\” with CrJan 06 10:40:37 worker1 kubelet[25457]: E0106 10:40:37.155592 25457 kuberuntime_manager.go:790] “CreatePodSandbox for pod failed” err=“open /run/systemd/resolve/resolv.conf: no such file or directory” pod=“kube-system/kube-proxy-mc7dw” Jan 06 10:40:37 worker1 kubelet[25457]: E0106 10:40:37.155474 25457 kuberuntime_sandbox.go:41] “Failed to generate sandbox config for pod” err=“open /run/systemd/resolve/resolv.conf: no such file or directory” pod="kube-system/kube-proxJan 06 10:40:37 worker1 kubelet[25457]: E0106 10:40:37.064371 25457 kubelet.go:2211] “Container runtime network not ready” networkReady="NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni coJan 06 10:40:36 worker1 kubelet[25457]: E0106 10:40:36.154461 25457 pod_workers.go:190] “Error syncing pod, skipping” err="failed to \“CreatePodSandbox\” for \“nodelocaldns-dt664_kube-system(f4841504-5cc7-4842-8b66-41bc43015dd6)\” with Jan 06 10:40:36 worker1 kubelet[25457]: E0106 10:40:36.154376 25457 kuberuntime_manager.go:790] “CreatePodSandbox for pod failed” err=“open /run/systemd/resolve/resolv.conf: no such file or directory” pod="kube-system/nodelocaldns-dt664Jan 06 10:40:36 worker1 kubelet[25457]: E0106 10:40:36.154329 25457 kuberuntime_sandbox.go:41] “Failed to generate sandbox config for pod” err=“open /run/systemd/resolve/resolv.conf: no such file or directory” pod="kube-system/nodelocalJan 06 10:40:34 worker1 kubelet[25457]: I0106 10:40:34.225280 25457 cni.go:239] “Unable to update cni config” err=“no networks found in /etc/cni/net.d”