k8wiz
Kubernetes
Hard
Commands

A kubeadm apiserver certificate still has 300 days left. What does kubeadm certs renew apiserver do?

Select your answer:

Show answer and explanation

Answer: Issues a new certificate anyway, since renewal ignores the expiry date

Explanation

kubeadm certs renew runs unconditionally, regardless of the certificate's expiration date. It takes the subject and SANs from the existing certificate and signs a new one with the local CA, valid for certificateValidityPeriod (one year by default). A signed certificate cannot have its notAfter date edited in place, so renewal always means a new certificate.

Read more about Kubernetes