ks-console 日志:
`
statusText: ‘Unauthorized’,
message: ‘Unauthorized: incorrect password\n’
}
–> POST /login 200 8ms 97b 2021/07/09T01:53:35.431
<– GET /kapis/resources.kubesphere.io/v1alpha3/namespaces?labelSelector=%21kubesphere.io%2Fkubefed-host-namespace%2C%21kubesphere.io%2Fdevopsproject&sortBy=createTime&limit=10 2021/07/12T03:02:33.274
<– GET /kapis/monitoring.kubesphere.io/v1alpha3/cluster?metrics_filter=cluster_cpu_usage%7Ccluster_cpu_total%7Ccluster_memory_usage_wo_cache%7Ccluster_memory_total%7Ccluster_disk_size_usage%7Ccluster_disk_size_capacity%7Ccluster_pod_running_count%7Ccluster_pod_quota%24 2021/07/12T03:02:33.545
<– GET /kapis/version 2021/07/12T03:02:33.610
<– GET /kapis/resources.kubesphere.io/v1alpha3/nodes?labelSelector=node-role.kubernetes.io%2Fmaster%3D 2021/07/12T03:02:42.449
<– POST /login 2021/07/12T03:07:03.948
FetchError: request to http://ks-apiserver.kubesphere-system.svc/oauth/token failed, reason: socket hang up
at ClientRequest.<anonymous> (/opt/kubesphere/console/server/server.js:47885:11)
at ClientRequest.emit (events.js:314:20)
at Socket.socketOnEnd (http_client.js:458:9)
at Socket.emit (events.js:326:22)
at endReadableNT (stream_readable.js:1241:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
type: ‘system’,
errno: ‘ECONNRESET’,
code: ‘ECONNRESET’
}
–> POST /login 200 36s 131b 2021/07/12T03:07:39.924
<– POST /login 2021/07/12T05:59:18.119
–> POST /login 200 1,029ms 155b 2021/07/12T05:59:19.148
FetchError: request to http://ks-apiserver.kubesphere-system.svc/oauth/token failed, reason: connect ECONNREFUSED 10.233.4.229:80
at ClientRequest.<anonymous> (/opt/kubesphere/console/server/server.js:47885:11)
at ClientRequest.emit (events.js:314:20)
at Socket.socketErrorListener (http_client.js:427:9)
at Socket.emit (events.js:314:20)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
type: ‘system’,
errno: ‘ECONNREFUSED’,
code: ‘ECONNREFUSED’
}
<– POST /login 2021/07/12T05:59:20.146
FetchError: request to http://ks-apiserver.kubesphere-system.svc/oauth/token failed, reason: connect ECONNREFUSED 10.233.4.229:80
at ClientRequest.<anonymous> (/opt/kubesphere/console/server/server.js:47885:11)
at ClientRequest.emit (events.js:314:20)
at Socket.socketErrorListener (http_client.js:427:9)
at Socket.emit (events.js:314:20)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
type: ‘system’,
errno: ‘ECONNREFUSED’,
code: ‘ECONNREFUSED’
}
–> POST /login 200 1,017ms 155b 2021/07/12T05:59:21.163
`
ks-apiserver 日志:
`
W0712 06:50:08.222937 1 client_config.go:552] Neither –kubeconfig nor –master was specified. Using the inClusterConfig. This might not work.
W0712 06:50:08.225636 1 client_config.go:552] Neither –kubeconfig nor –master was specified. Using the inClusterConfig. This might not work.
E0712 06:50:11.901382 1 metricsserver.go:231] Get “https://10.233.0.1:443/api?timeout=32s”: dial tcp 10.233.0.1:443: connect: no route to host
F0712 06:50:14.968025 1 options.go:228] unable to create runtime cache: could not create RESTMapper from config
`
把master1 节点上线后,过了不到十分钟,console可以访问了,集群又恢复正常了。
另外经测试: master1 下线会导致 webconsole故障。 可以打开console页面,但是无法登录。
master2 或者master3 下线的情况下, webconsole可以正常工作