We're currently running cert-manager 0.10 on GKE 1.15 in Production. How can I upgrade to the current 1.0 without 'downtime', i.e. losing certificates?
Current GKE version default is 1.16.13-gke.401
, if you want to change certificates you could also think about upgrading GKE version if this is possible. Before any changes its always good to backup your certs. It's well described in Cert-Manager docs.
Can I uninstall cert-manager (without deleting the certificates) and then just install 1.0? Does 1.0 have backward-compatibility with the old certmanager.k8s.io API namespace so the existing certificates are still recognized (and eventually replaced)?
Between 0.10 and 1.0 Cert-Manager
versions, there are some changes. For 0.10 to 0.11
annotation changes. As mention in docs, before upgrading form 0.10 to 0.11 you must change configuration format:
We have also removed support for the old configuration format that was deprecated in the v0.8 release. This means you must transition to using the new solvers style configuration format for your ACME issuers before upgrading to v0.11.
Also there is information:
You must be sure to properly backup, uninstall, re-install and restore your installation in order to ensure the upgrade is successful.
Also between 0.14 to 0.15 versions, big change was introduced, new CRDs.
If there would be no significant changes between version, it could be upgraded in range of a few versions, like in this article - v0.4 to v0.7.2. However newer versions introducing new features or changes in configuration like:
v0.10 to v0.11: ACME issuers and certificates must be upgraded before upgrading to v0.11. Additionally there are annotation changes that reflect the new API.
v0.12 to v0.3: No special upgrade steps required!
v0.11 to v0.12: Removal of webhook API service
In my opinion, there are 3 options:
- Upgrading 1 by 1 (applying new features and verify in each version if this works correctly).
- Upgrade from 0.10 to 1.0, but all configuration changes between those version would need to be tuned.
- Configure from scratch your Cert-Manager with newest version.