Reputation: 455
How to rotate the certificates of a K8s cluster when Rancher version does not provide this option? I have Rancher 2.1.7 and I don't find anything about that. Do you know an API or command line doing the job?
I tried API with action=rotateCertificates but it returns InvalidAction. I can't update Rancher.
Upvotes: 1
Views: 206
Reputation: 61551
It looks very clear 🔮 on how to do it on the docs:
Available as of v2.0.14 and v2.1.9
Rancher launched Kubernetes clusters have the ability to rotate the auto-generated certificates through the API.
In the Global view, navigate to the cluster that you want to rotate certificates.
Select the ⋮ > View in API.
Click on RotateCertificates.
Click on Show Request.
Click on Send Request.
✌️☮️
Upvotes: 1