Kubernetes clusters have the following certificates. To ensure correct operation of the clusters, manually renew a certificate if it has expired.
Certificate |
Validity period |
CA certificate |
10 years |
apiserver certificate |
10 years |
kubelet-client certificate |
10 years |
front-proxy certificate |
10 years |
front-proxy client certificate |
10 years |
To access the path for saving Kubernetes certificates, execute the /etc/kubernetes/pki command.
Execute the openssl x509 -in certificate name -noout –dates command and examine the notAfter information.
Execute the kubeadm alpha certs renew certificate name command to reset the validity period of a certificate to 10 years.