创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。

操作系统信息
虚拟机,麒麟v10,8C/16G

Kubernetes版本信息
[root@kube03 src]# kubectl version

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”}

容器运行时

[root@kube03 src]# docker version

Client:

Version: 20.10.16

API version: 1.41

Go version: go1.17.10

Git commit: aa7e414

Built: Thu May 12 09:14:28 2022

OS/Arch: linux/amd64

Context: default

Experimental: true

Server: Docker Engine - Community

Engine:

Version: 20.10.16

API version: 1.41 (minimum version 1.12)

Go version: go1.17.10

Git commit: f756502

Built: Thu May 12 09:19:16 2022

OS/Arch: linux/amd64

Experimental: false

containerd:

Version: v1.6.4

GitCommit: 212e8b6fa2f44b9c21b2798135fc6fb7c53efc16

runc:

Version: 1.1.1

GitCommit: v1.1.1-0-g52de29d7

docker-init:

Version: 0.19.0

GitCommit: de40ad0

KubeSphere版本信息
v3.2.1。离线使用kk安装

[root@kube03 src]# kubectl get pods -A |grep -v Running

NAMESPACE NAME READY STATUS RESTARTS AGE

kube-system openebs-localpv-provisioner-798676bddb-5djtl 0/1 CrashLoopBackOff 169 17h

kubesphere-monitoring-system notification-manager-operator-547bf6dc98-m6lv6 ½ CrashLoopBackOff 159 17h

kubesphere-system ks-apiserver-5f4b76d957-8vg26 0/1 CrashLoopBackOff 204 17h

kubesphere-system ks-apiserver-5f4b76d957-pnfth 0/1 CrashLoopBackOff 203 17h

kubesphere-system ks-apiserver-5f4b76d957-rps69 0/1 CrashLoopBackOff 124 10h

kubesphere-system redis-ha-haproxy-6bb68d95fb-2k6mg 0/1 Init:CrashLoopBackOff 148 17h

kubesphere-system redis-ha-haproxy-6bb68d95fb-5xsdk 0/1 CrashLoopBackOff 327 17h

kubesphere-system redis-ha-haproxy-6bb68d95fb-kxmfh 0/1 CrashLoopBackOff 331 17h

kubesphere-system redis-ha-server-2 0/2 Init:0/1 192 17h

查看redis日志:

[root@kube03 src]# kubectl logs -f -n kubesphere-system redis-ha-server-2 config-init

Could not connect to Redis at redis-ha:26379: Try again

Initializing config..

/readonly-config/init.sh: line 84: Could not resolve the announce ip for this pod: not found

haproxy日志

[root@kube03 src]# kubectl logs -f -n kubesphere-system redis-ha-haproxy-6bb68d95fb-2k6mg config-init

Waiting for service redis-ha-announce-0 to be ready (1) …

Waiting for service redis-ha-announce-0 to be ready (2) …

Waiting for service redis-ha-announce-0 to be ready (3) …

Waiting for service redis-ha-announce-0 to be ready (4) …

Waiting for service redis-ha-announce-0 to be ready (5) …

Waiting for service redis-ha-announce-0 to be ready (6) …

Waiting for service redis-ha-announce-0 to be ready (7) …

Waiting for service redis-ha-announce-0 to be ready (8) …

Waiting for service redis-ha-announce-0 to be ready (9) …

Waiting for service redis-ha-announce-0 to be ready (10) …

Could not resolve the announce ip for redis-ha-announce-0

1 个月 后

兄弟,解决了吗?我遇到了跟你一样的问题。

2 年 后