k8s 之kubelet 组件安装报错

1. 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证书签发错误导致重新签发证书即可

 

原文地址:https://www.cnblogs.com/sseban/p/13060701.html