安装kubesphere3.0后登陆控制台页面转圈圈有报错
登陆控制台以后报错如下
发现ks-console容器有报错
将如下几个容器缩减副本到1,有效缓解问题
`{ UnauthorizedError: Not Login
at Object.throw (/opt/kubesphere/console/server/server.js:31701:11)
at getCurrentUser (/opt/kubesphere/console/server/server.js:9037:14)
at renderView (/opt/kubesphere/console/server/server.js:23231:46)
at dispatch (/opt/kubesphere/console/server/server.js:6870:32)
at next (/opt/kubesphere/console/server/server.js:6871:18)
at /opt/kubesphere/console/server/server.js:70183:16
at dispatch (/opt/kubesphere/console/server/server.js:6870:32)
at next (/opt/kubesphere/console/server/server.js:6871:18)
at /opt/kubesphere/console/server/server.js:77986:37
at dispatch (/opt/kubesphere/console/server/server.js:6870:32)
at next (/opt/kubesphere/console/server/server.js:6871:18)
at /opt/kubesphere/console/server/server.js:70183:16
at dispatch (/opt/kubesphere/console/server/server.js:6870:32)
at next (/opt/kubesphere/console/server/server.js:6871:18)
at /opt/kubesphere/console/server/server.js:77986:37
at dispatch (/opt/kubesphere/console/server/server.js:6870:32) message: ‘Not Login’ }`
https://kubesphere.com.cn/forum/d/2058-kk-internal-error-occurred-account-is-not-active
根据ks-console报错,社区查询到相关内容
同样使用local pv全新安装,问题依然存在
ks-apiserver只有如下这行日志
W0105 18:14:51.369040 1 client_config.go:543] Neither –kubeconfig nor –master was specified. Using the inClusterConfig. This might not work.
I0105 18:14:51.386819 1 apiserver.go:300] Start cache objects
I0105 18:14:52.119780 1 apiserver.go:502] Finished caching objects
I0105 18:14:52.119803 1 apiserver.go:232] Start listening on :9090
kubesphere使用阿里云ECS, 3master+3node安装
请问如何解决
【已解决】
https://imroc.io/posts/kubernetes/troubleshooting-with-kubernetes-network/
net.ipv4.tcp_tw_recycle 影响了容器网络
echo “net.ipv4.tcp_tw_recycle = 0” >> /etc/sysctl.conf
sysctl -p
感谢@yuswift 前期排查问题并耐心讲解