首页 > 范文大全 > 申报材料 正文
【申报证书过期】K3s证书过期

时间:2023-03-14 11:35:00 阅读: 评论: 作者:佚名

现象:

# 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;唐(消歧义)

  • 评论列表

发表评论: