创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
例如:Centos7.9
Kubernetes版本信息
将 kubectl version
命令执行结果贴在下方
Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.9", GitCommit:"4fb7ed12476d57b8437ada90b4f93b17ffaeed99", GitTreeState:"clean", BuildDate:"2020-07-15T16:18:16Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.9", GitCommit:"4fb7ed12476d57b8437ada90b4f93b17ffaeed99", GitTreeState:"clean", BuildDate:"2020-07-15T16:10:45Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
容器运行时
将 docker version
/ crictl version
/ nerdctl version
结果贴在下方
Client: Docker Engine - Community
Version: 19.03.4
API version: 1.40
Go version: go1.12.10
Git commit: 9013bf583a
Built: Fri Oct 18 15:49:05 2019
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 19.03.4
API version: 1.40 (minimum version 1.12)
Go version: go1.12.10
Git commit: 9013bf583a
Built: Fri Oct 18 15:55:51 2019
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.2.10
GitCommit: b34a5c8af56e510852c35414db4c1f4fa6172339
runc:
Version: 1.0.0-rc8+dev
GitCommit: 3e425f80a8c931f88e6d94a8c831b9d5aa481657
docker-init:
Version: 0.18.0
GitCommit: fec3683
KubeSphere版本信息
例如:v2.1.1/v3.0.0。离线安装还是在线安装。在已有K8s上安装还是使用kk安装。
kubersphere: 3.0.0
问题是什么
启动这个Dns一直重启
2020/10/15 12:16:00 [ERROR] Failed to read node-cache coreFile /etc/coredns/Corefile.base - open /etc/coredns/Corefile.base: no such file or directory
2020/10/15 12:16:00 [ERROR] Failed to sync kube-dns config directory /etc/kube-dns, err: lstat /etc/kube-dns: no such file or directory
Calico也一直重启不了
Normal Created 32m kubelet, kubernetes-node3 Created container flexvol-driver
Normal Started 32m kubelet, kubernetes-node3 Started container flexvol-driver
Normal Pulled 32m kubelet, kubernetes-node3 Container image "10.68.10.150/kubesphere/calico/node:v3.15.1" already present on machine
Normal Created 32m kubelet, kubernetes-node3 Created container calico-node
Normal Started 32m kubelet, kubernetes-node3 Started container calico-node
Warning Unhealthy 31m kubelet, kubernetes-node3 Readiness probe failed: 2022-04-29 03:32:18.184 [INFO][209] confd/health.go 180: Number of node(s) with BGP peering established = 4
calico/node is not ready: felix is not ready: Get http://localhost:9099/readiness: context deadline exceeded
Warning Unhealthy 31m kubelet, kubernetes-node3 Readiness probe failed: 2022-04-29 03:32:48.300 [INFO][292] confd/health.go 180: Number of node(s) with BGP peering established = 4
calico/node is not ready: felix is not ready: Get http://localhost:9099/readiness: dial tcp 127.0.0.1:9099: i/o timeout
Warning Unhealthy 30m kubelet, kubernetes-node3 Readiness probe failed: 2022-04-29 03:33:18.416 [INFO][344] confd/health.go 180: Number of node(s) with BGP peering established = 4
calico/node is not ready: felix is not ready: Get http://localhost:9099/readiness: context deadline exceeded
Warning Unhealthy 30m kubelet, kubernetes-node3 Readiness probe failed: 2022-04-29 03:33:48.530 [INFO][421] confd/health.go 180: Number of node(s) with BGP peering established = 4
calico/node is not ready: felix is not ready: Get http://localhost:9099/readiness: context deadline exceeded
Warning Unhealthy 29m kubelet, kubernetes-node3 Readiness probe failed: 2022-04-29 03:34:18.643 [INFO][470] confd/health.go 180: Number of node(s) with BGP peering established = 4
calico/node is not ready: felix is not ready: Get http://localhost:9099/readiness: context deadline exceeded
Warning Unhealthy 29m kubelet, kubernetes-node3 Readiness probe failed: 2022-04-29 03:34:48.763 [INFO][528] confd/health.go 180: Number of node(s) with BGP peering established = 4
calico/node is not ready: felix is not ready: Get http://localhost:9099/readiness: context deadline exceeded
Normal Killing 29m kubelet, kubernetes-node3 Container calico-node failed liveness probe, will be restarted
Warning Unhealthy 12m (x29 over 31m) kubelet, kubernetes-node3 Liveness probe failed: calico/node is not ready: Felix is not live: Get http://localhost:9099/liveness: context deadline exceeded
Warning Unhealthy 7m32s (x57 over 28m) kubelet, kubernetes-node3 (combined from similar events): Readiness probe failed: 2022-04-29 03:56:38.408 [INFO][346] confd/health.go 180: Number of node(s) with BGP peering established = 4
calico/node is not ready: felix is not ready: Get http://localhost:9099/readiness: context deadline exceeded
Warning BackOff 2m19s (x19 over 5m51s) kubelet, kubernetes-node3 Back-off restarting failed container