-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Automatic CA rotation in CAPI #7721
Comments
Tagging folks who were involved in the referenced issues/PRs and see how we can move with this issue |
/triage accepted Just as a historical note, this was one of the use cases for which we discussed the idea of a kubeadm operator, which never caught traction. |
@fabriziopandini thanks, have not heard about the kubeadm operator before, will look around for that (or if you could share any references would be also great) to grasp the initial idea |
Oh found it, maybe this one: https://hackmd.io/@QlB2bmbhS-aeuDlwOCH9Yw/HkidAVXlS |
Found out that there is a wider interest on this and #7044 is also gathering the use cases related to this problem |
Hi @furkatgofurov7 and @fabriziopandini, I'm developing a product based on CAPI, I would like to leverage the ability of CAPI to rotate CA. Based on the above discussion, I think the feature is not available right now? As I'm new to this project, could you please give me some help? Thanks |
You are correct, this is an important feature, and unfortunately, it is not yet available right now. This requires some research... |
Copy paste from my last Kubernetes slack's message : So after spending days on this topic, Phase 1 :
Phase 2 "bigbang" (on all CP nodes at the same time) :
Phase 3 :
And tadaaam ... it works. this is still very "manual" (I really hate SSH & remote actions) but we're facing here multiple capi & kubeadm limitations. They are preventing us to automate this CA rollout propelly 1 node at a time. |
It will be great to document this in the book... |
/priority important-longterm |
User Story
As a [developer/user/operator] I would like to rotate a k8s cluster CA which involves many steps and restarts (rolling upgrade) of pods and updates on other resources (config maps, secrets, service accounts) which is manual: https://kubernetes.io/docs/tasks/tls/manual-rotation-of-ca-certificates/
With CAPI and the ability to deploy many target clusters from a management cluster, I am looking for available options to do the CA rotation at scale (manual operation on each cluster will be very costly). So, it would be interesting to know how the community is addressing this issue. Are there any external open-source tools that could be used to tackle this challenge?
Detailed Description
There are also some cases in which the CA of the target clusters might be different from that of the management cluster.
Some use cases:
[A clear and concise description of what you want to happen.]
Possible ways to do CA rotation at scale with CAPI built-in support would be ideal
Anything else you would like to add:
Checked the automatic cert rotation for control plane machines only introduced in #6983 which essentially tackles the part of the original issue on certificate management in #5490
[Miscellaneous information that will assist in solving the issue.]
/kind feature
The text was updated successfully, but these errors were encountered: