kubesphere-system 下的redis-ha-server 产生了大量的sid---开头的key
hongmingK零SK壹S
kubectl delete loginrecords –all 然后 kubectl edit users xxx
验证账号密码
curl -X POST 'http://ks-apiserver.kubesphere-system.svc/oauth/token' -H 'Content-Type: application/x-www-form-urlencoded' --data-urlencode 'grant_type=password' --data-urlencode 'username=<USERNAME>' --data-urlencode 'password=<PASSWORD>'
在看看这个帖子 检查一下 redis有没有异常重启一下ks-console 看看有没有错误日志(redis连接相关) ,https://kubesphere.com.cn/forum/d/3248/13
填写用户,显示密码,再粘贴的密码就无法登录。
leoendlessK零S
gennpix ks-console 的探针设置的有问题,可以先移除这个探针
leoendless sid– 开头的key 逐渐变少了
现在还有个问题:有几个账号无论在哪里都无法登陆,使用验证密码的接口测试没问题
curl -X POST 'http://ks-apiserver.kubesphere-system.svc/oauth/token' -H 'Content-Type: application/x-www-form-urlencoded' --data-urlencode 'grant_type=password' --data-urlencode 'username=<USERNAME>' --data-urlencode 'password=<PASSWORD>'
hongmingK零SK壹S
- 已编辑
gennpix 这个日志是 redis 异常了,redis 得改成3 副本
kubectl -n kubesphere-system scale sts redis-ha-server --replicas=0
kubectl -n kubesphere-system scale deploy redis-ha-haproxy --replicas=0
kubectl -n kubesphere-system scale sts redis-ha-server --replicas=3
kubectl -n kubesphere-system scale deploy redis-ha-haproxy --replicas=3
kubectl -n kubesphere-system exec -it redis-ha-server-0 redis-cli info replication
再重启一下ks-console , 或者把ks-console 调整为1 个副本
kubectl -n kubesphere-system rollout restart deploy ks-console
3 个月 后
遇到同样的问题 现在部分账户没办法登录