certs_renew.yaml is used to automatically renew service/workload certificates for the Kubernetes cluster (CA certificates are not included).
-
Global Initialization
- Execute the
native/rootrole on all nodes.
- Execute the
-
Load Default Variables
- Load the
defaultsrole on all nodes.
- Load the
-
Certificate Initialization
- Execute
cert/initonlocalhostto prepare the CA and configuration required for certificate renewal.
- Execute
-
Execute Renewal
- Execute the
certs/renewrole on all nodes to automatically detect and renew certificates that are about to expire or have already expired.
- Execute the
- CA root certificates will not be renewed automatically. To replace the CA, please handle it manually or recreate the cluster.
- It is recommended to run this playbook before certificates are close to expiration to avoid service interruption.