hongmingK零SK壹S
- 已编辑
kubectl -n kubesphere-system logs -l app=ks-account
kubectl -n kubesphere-system logs -l app=ks-apigateway
看看这两个组件的日志
kubectl -n kubesphere-system logs -l app=ks-account
kubectl -n kubesphere-system logs -l app=ks-apigateway
看看这两个组件的日志
kubectl -n kubesphere-system logs -l app=ks-account
W0504 05:56:30.792621 1 client_config.go:549] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
I0504 05:56:31.412132 1 server.go:113] Server listening on 0.0.0.0:9090
W0506 02:11:47.383782 1 client_config.go:549] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
I0506 02:11:48.019245 1 server.go:113] Server listening on 0.0.0.0:9090
E0506 13:57:22.452061 1 streamwatcher.go:109] Unable to decode an event from the watch stream: read tcp 172.28.94.158:48528->172.28.96.1:443: read: connection timed out
E0506 13:57:22.452061 1 streamwatcher.go:109] Unable to decode an event from the watch stream: read tcp 172.28.94.158:48528->172.28.96.1:443: read: connection timed out
E0506 13:57:22.452141 1 streamwatcher.go:109] Unable to decode an event from the watch stream: read tcp 172.28.94.158:48528->172.28.96.1:443: read: connection timed out
E0506 13:57:22.452080 1 streamwatcher.go:109] Unable to decode an event from the watch stream: read tcp 172.28.94.158:48528->172.28.96.1:443: read: connection timed out
E0506 13:57:22.452104 1 streamwatcher.go:109] Unable to decode an event from the watch stream: read tcp 172.28.94.158:48528->172.28.96.1:443: read: connection timed out
E0506 13:57:22.452344 1 streamwatcher.go:109] Unable to decode an event from the watch stream: read tcp 172.28.94.158:48528->172.28.96.1:443: read: connection timed out
W0506 15:47:19.855660 1 client_config.go:549] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
I0506 15:47:20.482187 1 server.go:113] Server listening on 0.0.0.0:9090
kubectl -n kubesphere-system logs -l app=ks-apigateway
E0506 16:03:34.569208 1 authenticate.go:170] signature is invalid
2020/05/06 16:03:34 Unauthorized,signature is invalid
172.28.94.161 06/May/2020:16:03:34 +0000 GET /kapis/monitoring.kubesphere.io/v1alpha2/nodes?type=rank&metrics_filter=node_cpu_utilisation%7Cnode_cpu_usage%7Cnode_cpu_total%7Cnode_memory_utilisation%7Cnode_memory_usage_wo_cache%7Cnode_memory_total%7Cnode_disk_size_utilisation%7Cnode_disk_size_usage%7Cnode_disk_size_capacity%7Cnode_pod_utilisation%7Cnode_pod_running_count%7Cnode_pod_quota%7Cnode_disk_inode_utilisation%7Cnode_disk_inode_total%7Cnode_disk_inode_usage%7Cnode_load1%24&page=1&limit=5&sort_type=desc&sort_metric=node_cpu_utilisation HTTP/1.1 401 17 0ms
E0506 16:03:34.617070 1 authenticate.go:170] signature is invalid
2020/05/06 16:03:34 Unauthorized,signature is invalid
172.28.92.19 06/May/2020:16:03:46 +0000 POST /kapis/iam.kubesphere.io/v1alpha2/login HTTP/1.1 200 194 5ms
172.28.92.19 06/May/2020:16:03:46 +0000 GET /kapis/v1alpha1/configz HTTP/1.1 200 251 1ms
E0506 16:03:51.837591 1 authenticate.go:170] signature is invalid
2020/05/06 16:03:51 Unauthorized,signature is invalid
172.28.92.19 06/May/2020:16:03:51 +0000 GET /kapis/tenant.kubesphere.io/v1alpha2/workspaces HTTP/1.1 401 17 0ms
172.28.88.139 06/May/2020:15:52:05 +0000 GET /kapis/tenant.kubesphere.io/v1alpha2/workspaces HTTP/1.1 401 17 0ms
172.28.92.19 06/May/2020:16:03:33 +0000 GET /kapis/iam.kubesphere.io/v1alpha2/users/admin HTTP/1.1 200 1137 15ms
172.28.92.19 06/May/2020:16:03:34 +0000 GET /kapis/monitoring.kubesphere.io/v1alpha2/cluster?type=statistics HTTP/1.1 200 904 27ms
E0506 16:03:46.918451 1 authenticate.go:170] signature is invalid
2020/05/06 16:03:46 Unauthorized,signature is invalid
172.28.92.19 06/May/2020:16:03:46 +0000 GET /kapis/iam.kubesphere.io/v1alpha2/users/admin HTTP/1.1 401 17 0ms
172.28.92.19 06/May/2020:16:03:51 +0000 POST /kapis/iam.kubesphere.io/v1alpha2/login HTTP/1.1 200 194 9ms
172.28.92.19 06/May/2020:16:03:51 +0000 GET /kapis/v1alpha1/configz HTTP/1.1 200 251 3ms
2020/05/06 16:11:08 [INFO][cache:0xc00012bb80] Scanning for stale OCSP staples
2020/05/06 16:11:08 [INFO][cache:0xc00012bb80] Done checking OCSP staples
2020/05/06 15:56:07 [INFO][cache:0xc00013b860] Scanning for stale OCSP staples
2020/05/06 15:56:07 [INFO][cache:0xc00013b860] Done checking OCSP staples
2020/05/06 15:57:01 [ERROR] Sending telemetry: Post https://telemetry.caddyserver.com/v1/update/ce64b5fd-2b91-4e0f-91c2-93342b835dad: dial tcp: lookup telemetry.caddyserver.com on 172.28.96.2:53: no such host
172.28.92.19 06/May/2020:16:03:33 +0000 GET /kapis/tenant.kubesphere.io/v1alpha2/workspaces HTTP/1.1 200 1590 12ms
172.28.94.161 06/May/2020:16:03:34 +0000 GET /kapis/tenant.kubesphere.io/v1alpha2/devopscount/ HTTP/1.1 200 15 5ms
172.28.92.19 06/May/2020:16:03:34 +0000 GET /kapis/resources.kubesphere.io/v1alpha2/componenthealth HTTP/1.1 200 14896 5ms
172.28.92.19 06/May/2020:16:03:46 +0000 GET /kapis/tenant.kubesphere.io/v1alpha2/workspaces HTTP/1.1 401 17 0ms
E0506 16:03:46.917688 1 authenticate.go:170] signature is invalid
2020/05/06 16:03:46 Unauthorized,signature is invalid
172.28.92.19 06/May/2020:16:03:51 +0000 GET /kapis/iam.kubesphere.io/v1alpha2/users/admin HTTP/1.1 200 1137 6ms
172.28.92.19 06/May/2020:16:03:46 +0000 GET /kapis/tenant.kubesphere.io/v1alpha2/workspaces HTTP/1.1 401 17 0ms E0506 16:03:46.917688 1 authenticate.go:170] signature is invalid 2020/05/06 16:03:46 Unauthorized,signature is invalid
可以看到是因为签名校验失败导致登出,是不是ks-console前还有代理呢? 直接用 30880 这个node port 试试
现在用的就是nodeport方式直接访问的
ks-console NodePort 172.28.96.39 <none> 80:30880/TCP 2d19h
@leoendless 这个问题需要看看,我也遇到过,而且有的时候点几次这个弹出窗口。
我已经重新安装了下,暂时恢复了,但是这个问题过不了多久又会重现 基本一周出现2次 稍后再出现我再调下副本数
最好是找到问题出在哪个环节,日志中已经有明确的错误, 再往下排查就很快了
遇到同样的问题, 我是单节点部署的k8s,这5个pod每隔几分钟总是重启
求大神指点
endurerjun 你看下account的日志,也许是其他组件的状态不正常。
klj890 日志看不了,一直init