k8s查看证书过期时间:

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

sealos

openssl x509 -in /etc/kubernetes/pki/apiserver.crt -noout -text | grep Not

k0s

查看证书过期时间:
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