xiaosageK零S
开启多集群后。m集群加入h集群成功。但是创建多集群企业空间A后,打开这个A空间后一直提示要登陆。
跳转前地址:https://example.com/workspaces/ykj-prod-ks/overview/usage
跳转后地址:https://example.com/login?referer=/workspaces/ykj-prod-ks/overview/usage
开启多集群后。m集群加入h集群成功。但是创建多集群企业空间A后,打开这个A空间后一直提示要登陆。
跳转前地址:https://example.com/workspaces/ykj-prod-ks/overview/usage
跳转后地址:https://example.com/login?referer=/workspaces/ykj-prod-ks/overview/usage
xiaosage 注意 clusterRole 和 jwtSecret 的配置
https://kubesphere.com.cn/docs/multicluster-management/enable-multicluster/direct-connection/
hongming
两个集群的ClusterConfiguration配置,看起来喝教程没出入。
===H集群 ClusterConfiguration================
jwtSecret: 5fH5eL39BHks4K2tJfAhbrNjJ3vYWqe2
clusterRole: host
proxyPublishAddress: ‘http://120.27.244.220:30527’
===M集群 ClusterConfiguration================
jwtSecret: 5fH5eL39BHks4K2tJfAhbrNjJ3vYWqe2
clusterRole: member
xiaosage 可以看看 member cluster 上ks-apiserver 的报错是什么, 相关说明:
https://kubesphere.com.cn/en/docs/faq/access-control/session-timeout/
hongming
这两个集群是都开了ldap的,另外上面链接中的一些链接地址都是404.
以下是重试的错误信息
E1230 17:49:04.730271 1 jwt.go:51] signature is invalid
E1230 17:49:04.746582 1 token.go:57] signature is invalid
E1230 17:49:04.746597 1 jwt_token.go:45] signature is invalid
E1230 17:49:04.777921 1 authentication.go:60] Unable to authenticate the request due to error: signature is invalid
E1230 17:49:04.801152 1 jwt.go:51] signature is invalid
E1230 17:49:04.801178 1 token.go:57] signature is invalid
E1230 17:49:04.801183 1 jwt_token.go:45] signature is invalid
E1230 17:49:04.801191 1 authentication.go:60] Unable to authenticate the request due to error: signature is invalid
hongming
我调整成一样之后,提示
E1230 18:02:11.712140 1 token.go:65] token not found in cache
E1230 18:02:11.712164 1 jwt_token.go:45] token not found in cache
E1230 18:02:11.712174 1 authentication.go:60] Unable to authenticate the request due to error: token not found in cache
E1230 18:02:11.785716 1 token.go:65] token not found in cache
E1230 18:02:11.785741 1 jwt_token.go:45] token not found in cache
E1230 18:02:11.785750 1 authentication.go:60] Unable to authenticate the request due to error: token not found in cache
E1230 18:02:15.174355 1 v2.go:105] websocket: close 1001 (going away)
W1230 18:02:23.177164 1 terminal.go:136] 1Process exited
Jeff
ks-apiserver 有两个起不来。提示moinitoring service address in configuration MUST not be empty。但是这个值是有的。
ks-apiserver-5c4d8f8dcc-nxfgs 1/1 Running 0 19h
ks-apiserver-69fd98677-5cjts 0/1 CrashLoopBackOff 5 5m25s
ks-apiserver-69fd98677-5q558 0/1 CrashLoopBackOff 6 5m40s
===================================================
[root@ykj-prod-ks-master1 ~]# kubectl logs -n kubesphere-system ks-apiserver-69fd98677-5cjts
W1231 11:35:42.423484 1 client_config.go:543] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
Error: moinitoring service address in configuration MUST not be empty, please check configmap/kubesphere-config in kubesphere-system namespace
2020/12/31 11:35:42 moinitoring service address in configuration MUST not be empty, please check configmap/kubesphere-config in kubesphere-system namespace
=========================================================
`[root@ykj-prod-ks-master1 ~]# kubectl -n kubesphere-system get cm kubesphere-config -o yaml
monitoring:
endpoint: http://prometheus-operated.kubesphere-monitoring-system.svc:9090`
环境方便发一下 kubesphere@yunify.com吗
已解决 登陆不上是member集群手动配置了非0的token过期时间 crash是编辑了yaml缩近不对