Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

renew apiserver and etcd certs on konk pod startup #302

Merged
merged 4 commits into from
May 3, 2022

Conversation

kd7lxl
Copy link
Contributor

@kd7lxl kd7lxl commented May 2, 2022

The etcd and apiserver certs generated by kubeadm are only valid for one year. Every time kubeadm runs, it will renew the certs, but before this change konk would never overwrite the existing certs with the new ones. This PR patches the existing certs with the freshly generated ones when the pod starts and every 90 days.

An alternative approach would be to redesign this process to use cert-manager (#303).

@kd7lxl kd7lxl requested a review from a team as a code owner May 2, 2022 19:02
@kd7lxl kd7lxl enabled auto-merge (squash) May 2, 2022 21:41
@kd7lxl kd7lxl merged commit fec91f9 into infobloxopen:main May 3, 2022
@kd7lxl kd7lxl deleted the etcd-cert branch May 3, 2022 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants