环境:kubesphere on kubernate
安装完成后,发现redis server的pod状态为:Init:Error
通过
1 查看POD描述信息: kubectl -n kubesphere-system describe po redis-ha-server-0
发现该pod 定义了3个containers,第一个容器config-init就报错,信息如下:
State: Waiting
Reason: CrashLoopBackOff
2 进一步查看日志:kubectl -n kubesphere-system logs redis-ha-server-0 -c 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
请高人帮我指点下,下一步我要怎么做。