If the certificate that you used to configure HTTPS during installation is near expiration, follow these steps to replace the certificate.
-
Type the following command to get the name of the TLS secret, for example, cloudbees-core-example-com-tls:
kubectl describe ing cjoc -n cloudbees-core
-
Type the following command to remove the expired certificate:
kubectl delete secret cloudbees-core-example-com-tls -n cloudbees-core
-
Type the following command to recreate the secret with the new certificate:
kubectl create secret tls cloudbees-core-example-com-tls --key [your-new-key] --cert [your-new-cert] -n cloudbees-core