https://blog.csdn.net/erhaiou2008/article/details/124168680
openssl x509 -in /etc/kubernetes/pki/apiserver.crt -noout -text | grep Not
或使用统一命令查看
kubeadm alpha certs check-expiration
openssl x509 -in /etc/kubernetes/pki/apiserver.crt -noout -text | grep Not
查看证书过期时间:
openssl x509 -in /var/lib/k0s/pki/apiserver-kubelet-client.crt -noout -text | grep Not
openssl x509 -in /var/lib/k0s/pki/server.crt -noout -text | grep Not