k logs -f  -n kubesphere-system redis-ha-server-0 config-init

Could not connect to Redis at redis-ha:26379: Name does not resolve
Initializing config..
Setting up defaults
Setting this pod as the default master
Updating redis config
Updating sentinel config with master
/readonly-config/init.sh: eval: line 1: SENTINEL_ID_0: parameter not set

** pod信息 **

redis-ha-haproxy-5b7687ff-9z62f         0/1     Pending                 0          31m
redis-ha-haproxy-5b7687ff-m454w         1/1     Running                 0          31m
redis-ha-haproxy-5b7687ff-rvswc         1/1     Running                 0          31m
redis-ha-haproxy-9c947d88f-4qvxw        0/1     Pending                 0          16m
redis-ha-server-0                       0/2     Init:CrashLoopBackOff   10         31m

安装完成的时候 没有redis-ha-announce-0的服务,已手动添加

redis-ha              ClusterIP   None              <none>        6379/TCP,26379/TCP   22m
redis-ha-announce-0   ClusterIP   192.168.33.216    <none>        6379/TCP,26379/TCP   18m
redis-ha-announce-1   ClusterIP   192.168.168.154   <none>        6379/TCP,26379/TCP   18m
redis-ha-announce-2   ClusterIP   192.168.238.175   <none>        6379/TCP,26379/TCP   18m

这个问题改如何解决?

8 天 后
2 个月 后

chrinly 没,我手动重装的,也没人回复 感觉很坑啊,好几个扩展 我都是手动重装的

    8 个月 后