Force kubernetes certificates renewal
Force kubernetes certificates renewal
kubectl get certs -n rancher --no-headers=true | awk '{print $1}' | xargs -n 1 kubectl -n rancher patch certificate --patch '
- op: replace
path: /spec/renewBefore
value: 1h
' --type=json
kubectl get certs -n rancher --no-headers=true | awk '{print $1}' | xargs -n 1 kubectl -n rancher patch certificate -n rancher --patch '
- op: remove
path: /spec/renewBefore
' --type=json
source: https://github.com/jetstack/cert-manager/issues/2641
Leave a comment