报错:
[root@k8s-master01 ~]# kubectl get cs
Unable to connect to the server: x509: certificate has expired or is not yet valid: current time 2024-10-06T01:05:49-07:00 is after 2024-05-19T11:11:43Z
查看证书过期情况:
[root@k8s-master01 ~]# 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 May 19, 2024 11:11 UTC <invalid> ca no
apiserver May 19, 2024 11:11 UTC <invalid> ca no
apiserver-etcd-client May