创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
虚拟机,Ubuntu24.04,16C/32G
Kubernetes版本信息
将 kubectl version
命令执行结果贴在下方
kubectl version
Client Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.10", GitCommit:"7e54d50d3012cf3389e43b096ba35300f36e0817", GitTreeState:"clean", BuildDate:"2022-08-17T18:32:54Z", GoVersion:"go1.17.13", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.10", GitCommit:"7e54d50d3012cf3389e43b096ba35300f36e0817", GitTreeState:"clean", BuildDate:"2022-08-17T18:26:59Z", GoVersion:"go1.17.13", Compiler:"gc", Platform:"linux/amd64"}
容器运行时
将 docker version
/ crictl version
/ nerdctl version
结果贴在下方
docker version
Client:
Version: 24.0.6
API version: 1.43
Go version: go1.20.7
Git commit: ed223bc
Built: Mon Sep 4 12:30:51 2023
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 24.0.6
API version: 1.43 (minimum version 1.12)
Go version: go1.20.7
Git commit: 1a79695
Built: Mon Sep 4 12:32:17 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.7.3
GitCommit: 7880925980b188f4c97b462f709d0db8e8962aff
runc:
Version: 1.1.12
GitCommit: v1.1.12-0-g51d5e946
docker-init:
Version: 0.19.0
GitCommit: de40ad0
KubeSphere版本信息
v3.4.1 使用kk在线安装
问题是什么
报错日志是什么,最好有截图。
kubectl get pods -A
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system calico-kube-controllers-74dbdc644f-dcfcs 1/1 Running 0 30m
kube-system calico-node-7tnks 1/1 Running 0 30m
kube-system calico-node-dkk4h 1/1 Running 0 30m
kube-system calico-node-x564x 1/1 Running 0 30m
kube-system coredns-b7c47bcdc-2mstz 1/1 Running 0 30m
kube-system coredns-b7c47bcdc-95zvk 1/1 Running 0 30m
kube-system kube-apiserver-master 1/1 Running 0 31m
kube-system kube-controller-manager-master 1/1 Running 0 31m
kube-system kube-proxy-8plzq 1/1 Running 0 30m
kube-system kube-proxy-br9z2 1/1 Running 0 30m
kube-system kube-proxy-pmcbf 1/1 Running 0 30m
kube-system kube-scheduler-master 1/1 Running 0 31m
kube-system nodelocaldns-4szfk 1/1 Running 0 30m
kube-system nodelocaldns-h5cc7 1/1 Running 0 30m
kube-system nodelocaldns-nqrk7 1/1 Running 0 30m
kube-system openebs-localpv-provisioner-69cbb769b8-nffcb 1/1 Running 1 (29m ago) 30m
kube-system snapshot-controller-0 1/1 Running 0 29m
kubesphere-controls-system default-http-backend-696d6bf54f-26wlm 1/1 Running 0 27m
kubesphere-controls-system kubectl-admin-b49cf5585-dvq42 1/1 Running 0 23m
kubesphere-monitoring-system alertmanager-main-0 2/2 Running 0 25m
kubesphere-monitoring-system alertmanager-main-1 2/2 Running 0 25m
kubesphere-monitoring-system alertmanager-main-2 2/2 Running 0 25m
kubesphere-monitoring-system kube-state-metrics-774ff789cf-gwdm7 3/3 Running 0 25m
kubesphere-monitoring-system node-exporter-2b7ds 2/2 Running 0 25m
kubesphere-monitoring-system node-exporter-hjlvq 2/2 Running 0 25m
kubesphere-monitoring-system node-exporter-m5mls 2/2 Running 0 25m
kubesphere-monitoring-system notification-manager-deployment-78ff4d6789-d5qsq 2/2 Running 0 24m
kubesphere-monitoring-system notification-manager-deployment-78ff4d6789-kqqbm 2/2 Running 0 24m
kubesphere-monitoring-system notification-manager-operator-85d67fdc46-flfsk 2/2 Running 0 25m
kubesphere-monitoring-system prometheus-k8s-0 2/2 Running 0 25m
kubesphere-monitoring-system prometheus-k8s-1 2/2 Running 0 25m
kubesphere-monitoring-system prometheus-operator-57c78bd7fb-rkx64 2/2 Running 0 25m
kubesphere-system ks-apiserver-76bf8bb556-sbs2w 1/1 Running 0 27m
kubesphere-system ks-console-768dbcdf9c-jnz7b 1/1 Running 0 27m
kubesphere-system ks-controller-manager-866bf75746-czf8n 1/1 Running 0 27m
kubesphere-system ks-installer-d949f8fcc-8wtwm 1/1 Running 0 30m
所有pod处于running状态,但是集群资源和节点都是超时
安装时显示的所有版本,一开始我自己在master下载了docker,结果发现和node节点的docker版本不一致,卸载后重装发现containerd的版本一直改不了,不知道会不会是这个问题
+--------+------+------+---------+----------+-------+-------+---------+-----------+--------+--------+------------+------------+-------------+------------------+--------------+
| name | sudo | curl | openssl | ebtables | socat | ipset | ipvsadm | conntrack | chrony | docker | containerd | nfs client | ceph client | glusterfs client | time |
+--------+------+------+---------+----------+-------+-------+---------+-----------+--------+--------+------------+------------+-------------+------------------+--------------+
| master | y | y | y | y | y | y | | y | y | 24.0.6 | v1.7.3 | | | | CST 19:09:37 |
| node1 | y | y | y | y | y | y | | y | y | 24.0.6 | v1.6.4 | | | | CST 19:09:34 |
| node2 | y | y | y | y | y | y | | y | y | 24.0.6 | v1.6.4 | | | | CST 19:09:34 |
+--------+------+------+---------+----------+-------+-------+---------+-----------+--------+--------+------------+------------+-------------+------------------+--------------+