hello云胜

技术与生活

0%

kubectl报错

执行kubectl get 命令报错

1
Error from server (Timeout): the server was unable to return a response in the time allotted, but may still be processing the request (get pods)

查看api-server的日志

1
2
crictl ps
crictl logs 81bcff1a1d96b

看到错误信息

1
2
E1025 10:52:27.114364       1 controller.go:214] Unable to remove endpoints from kubernetes service: no master IPs were listed in storage, refusing to erase all endpoints for the kubernetes service

看etcd的日志

1
{"level":"warn","ts":"2023-10-25T03:06:43.360Z","caller":"etcdserver/util.go:166","msg":"apply request took too long","took":"179.923879ms","expected-duration":"100ms","prefix":"read-only range ","request":"key:\"/registry/leases/kubesphere-monitoring-system/7b8d27e6.kubesphere.io\" ","response":"range_response_count:1 size:582"}