By default, k8s cluster certificates generated by kubeadm have 1
year expiration. After certificates expired, k8s will not rotate
them automatically.
This commit checks the cert expiration date every day and rotates
them automatically if they expires within 90 days. After cert
renewed, all the k8s master component configurations will be updated.
An alarm will be sent to fm to notify the administrator to
reboot the controllers or renew the certs manually if the automatic
process fails.
Reviewed: https:/ /review. opendev. org/692276 /git.openstack. org/cgit/ starlingx/ stx-puppet/ commit/ ?id=e86f8b90fd7 1c6c2df5613ac83 dcb9a357f5a364
Committed: https:/
Submitter: Zuul
Branch: master
commit e86f8b90fd71c6c 2df5613ac83dcb9 a357f5a364
Author: Mingyuan Qi <email address hidden>
Date: Thu Oct 31 11:16:01 2019 +0800
Rotate k8s certificate automatically
By default, k8s cluster certificates generated by kubeadm have 1
year expiration. After certificates expired, k8s will not rotate
them automatically.
This commit checks the cert expiration date every day and rotates
them automatically if they expires within 90 days. After cert
renewed, all the k8s master component configurations will be updated.
An alarm will be sent to fm to notify the administrator to
reboot the controllers or renew the certs manually if the automatic
process fails.
Change-Id: I383120b8904857 bcf09ad6ca99990 0ce8eda9b95 /review. opendev. org/#/c/ 696224/ /review. opendev. org/#/c/ 698624/
Closes-Bug: 1838659
Depends-On: https:/
Depends-On: https:/
Signed-off-by: Mingyuan Qi <email address hidden>