Arzhr
Arzhr

Reputation: 455

Rotate Kubernetes Certificates with Rancher 2.1.7

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

Answers (1)

Rico
Rico

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.

  1. In the Global view, navigate to the cluster that you want to rotate certificates.

  2. Select the ⋮ > View in API.

  3. Click on RotateCertificates.

  4. Click on Show Request.

  5. Click on Send Request.

✌️☮️

Upvotes: 1

Related Questions