现象:
# kubectl get nodes
unable to connect to the server 3360 x 5093360 certificate has expired或is not yet valid解决方案的unable to connect to the server 3360 x 5093360 certificate has expired:
删除Secret k3s-serving
kube CTL-insecure-skip-TLS-verify-n kube-system delete secrets k3s-serving
从系统中删除dynamic-cert.json文件
RM-f/var/lib/rancher/k 3s/server/TL
重新启动K3s进程
Systemctl restart k3s
与Systemctl restart k3s-agent一起检查证书过期时间
命令
for I in ` ls/var/lib/rancher/k3s/server/TLS/*。CRT `;DO ECHO $ I;OpenSSL x509-enddate-noout-in $ I;唐(消歧义)