how i can renew my lets encrypt certificate for nginx ingress controller using cert manager. I wanted to renew the lets encrypt certificate before renewal time. Looking forward to hear back.
K8s Version: 1:23
The operating system my web server runs on is (include version): ubuntu
The version of my client is: cert manager
Status:
Conditions:
Last Transition Time: 2023-05-12T14:10:19Z
Message: Certificate is up to date and has not expired
Observed Generation: 1
Reason: Ready
Status: True
Type: Ready
Not After: 2023-08-10T13:10:18Z
Not Before: 2023-05-12T13:10:19Z
Renewal Time: 2023-07-11T13:10:18Z
Revision: 1
Events: <none>
here my expiry and renewal time. i wanted to renew it immediately. any speicifc command?
It will not cause downtime. Certificates are cached in memory by the webserver instances. Once the new certificate secret has been created, the webserver instances will be gracefully reloaded to pickup the new certificate.
The secret and certificate i wanted to renew is for nginx ingress controller not for webserver. I have doubt how it will cache. As deleting and creating need downtime and reosurce will not avl for that particular time
Yes, using cert-manager's CL tool will allow you to handle this more explicitly, per @MikeMcQ's good suggestion. I provided the quicker/dirtier approach I've used several times in my day job.