ks-apigateway连接不上redis

[root@localhost kubesphere]# kubectl -n kubesphere-system logs -l app=ks-apigateway
[DEV NOTICE] Registered directive 'authenticate' before 'jwt'
[DEV NOTICE] Registered directive 'authentication' before 'jwt'
[DEV NOTICE] Registered directive 'swagger' before 'jwt'
2020/08/18 07:07:13 [INFO][cache:0xc00052b180] Started certificate maintenance routine
Activating privacy features... done.
E0818 07:07:18.399814       1 redis.go:51] unable to reach redis hostdial tcp: i/o timeout
2020/08/18 07:07:18 dial tcp: i/o timeout
    luckyship 更改标题为「unable to reach redis hostdial tcp: i/o timeout 无法连接到redis

    yunkunrao 最小化安装,在已有k8s的环境上

    [root@localhost kubesphere]# kubectl get nodes
    NAME            STATUS   ROLES    AGE   VERSION
    193.160.57.29   Ready    master   39d   v1.16.3
    193.160.57.30   Ready    <none>   35d   v1.16.3
    193.160.57.31   Ready    <none>   35d   v1.16.3

    有大佬帮忙看一下吗。redis的服务是正常的,就是连不上

    [root@localhost test]# kubectl -n kubesphere-system logs -l app=redis
    1:C 20 Aug 2020 05:12:28.698 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
    1:C 20 Aug 2020 05:12:28.698 # Redis version=5.0.5, bits=64, commit=00000000, modified=0, pid=1, just started
    1:C 20 Aug 2020 05:12:28.698 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
    1:M 20 Aug 2020 05:12:28.700 * Running mode=standalone, port=6379.
    1:M 20 Aug 2020 05:12:28.700 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
    1:M 20 Aug 2020 05:12:28.700 # Server initialized
    1:M 20 Aug 2020 05:12:28.700 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
    1:M 20 Aug 2020 05:12:28.700 * Ready to accept connections
    [root@localhost test]# kubectl -n kubesphere-system logs -l app=ks-apigateway
    [DEV NOTICE] Registered directive 'authenticate' before 'jwt'
    [DEV NOTICE] Registered directive 'authentication' before 'jwt'
    [DEV NOTICE] Registered directive 'swagger' before 'jwt'
    Activating privacy features... done.
    2020/08/20 08:47:03 [INFO][cache:0xc0001c50e0] Started certificate maintenance routine
    E0820 08:47:08.326876       1 redis.go:51] unable to reach redis hostdial tcp: i/o timeout
    2020/08/20 08:47:08 dial tcp: i/o timeout

    另外出现ks-account卡住不动的情况,参考https://kubesphere.com.cn/forum/d/1600-ks-account-init-1-2-helm-2-16-3-k8s-1-17-3
    已经解决,目前环境已成功起来

    3 个月 后
    1 年 后

    商业产品与合作咨询