Jan 14 22:29:29 master02.k8s kubelet[1998]: E0114 22:29:29.187573 1998 kubelet.go:2291] "Error getting node" err="node \"master02.k8s\" not found"
在master01上查看etcd的日志发现:
1
2022-01-14 15:57:13.963722 I | embed: rejected connection from "192.168.203.4:45008" (error "tls: failed to verify client's certificate: x509: certificate has expired or is not yet valid", ServerName "")
# kubeadm certs renew missing subcommand; "renew" is not meant to be run on its own To see the stack trace of this error execute with --v=5 or higher [root@master02 kubernetes]# kubeadm certs check-expiration [check-expiration] Reading configuration from the cluster... [check-expiration] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -o yaml' [check-expiration] Error reading configuration from the Cluster. Falling back to default configuration
CERTIFICATE EXPIRES RESIDUAL TIME CERTIFICATE AUTHORITY EXTERNALLY MANAGED admin.conf Sep 10, 2022 00:10 UTC 238d no apiserver Sep 10, 2022 00:20 UTC 238d ca no apiserver-etcd-client Sep 10, 2022 00:20 UTC 238d etcd-ca no apiserver-kubelet-client Sep 10, 2022 00:20 UTC 238d ca no controller-manager.conf Sep 10, 2022 00:09 UTC 238d no etcd-healthcheck-client Dec 22, 2021 23:53 UTC <invalid> etcd-ca no etcd-peer Dec 22, 2021 23:53 UTC <invalid> etcd-ca no etcd-server Dec 22, 2021 23:53 UTC <invalid> etcd-ca no front-proxy-client Sep 10, 2022 00:20 UTC 238d front-proxy-ca no scheduler.conf Sep 10, 2022 00:09 UTC 238d no
CERTIFICATE AUTHORITY EXPIRES RESIDUAL TIME EXTERNALLY MANAGED ca Dec 24, 2029 07:18 UTC 7y no etcd-ca Dec 24, 2029 07:18 UTC 7y no front-proxy-ca Dec 24, 2029 07:18 UTC 7y no