-
k8s组件安装好以后21和22机器都处于Running状态 使用 kubectl get nodes 显示no..
处理大概流程:
1.先查看kubelet组件的日志
Failed to list *v1.Service: Get https://192.168.12.10:7443/api/v1/services?limit=500&resourceVersion=0: x509: certificate is valid for 127.0.0.1, 192.254.0.1, 192.168.12.21, 192.168.12.21, 192.168.12.23, not 192.168.12.10
2.去看前端的nginx四层代理日志存有大量的timed out
2020/06/07 11:54:29 [error] 6864#0: *76961 upstream timed out (110: Connection timed out) while connecting to upstream, client: 192.168.12.21, server: 0.0.0.0:7443, upstream: "192.168.12.22:6443", bytes from/to client:0/0, bytes from/to upstream:0/0
3. 检查apiserver日志
http: TLS handshake error from x.x.x:43534: unexpected EOF
看到这里大概情况也算是摸清楚了 最终原因由于apiserver证书签发错误导致重新签发证书即可
文章来源于k8s权威指南 语雀:https://www.yuque.com/songyifei/bkxwl0/dntb6a 博客园:https://www.cnblogs.com/sseban/p/13065177.html