|
| 1 | +.. _meko-upgrade-om-version: |
| 2 | + |
| 3 | +================================================= |
| 4 | +Upgrade Ops Manager and Backing Database Versions |
| 5 | +================================================= |
| 6 | + |
| 7 | +.. default-domain:: mongodb |
| 8 | + |
| 9 | +.. contents:: On this page |
| 10 | + :local: |
| 11 | + :backlinks: none |
| 12 | + :depth: 2 |
| 13 | + :class: singlecol |
| 14 | + |
| 15 | +Update the major and minor versions of your |onprem| instance and :term:`backing databases` in the :ref:`k8s-om-specification` that |k8s-op-short| uses to manage your deployment. |
| 16 | + |
| 17 | +Prerequisites |
| 18 | +------------- |
| 19 | + |
| 20 | +.. warning:: |
| 21 | + |
| 22 | + To maintain existing settings and availability, back up the following in your current |onprem| instance: |
| 23 | + |
| 24 | + - Your ``conf-mms.properties`` to a secure location. The ``conf-mms.properties`` stores settings for the |onprem| instance. |
| 25 | + - Your ``gen.key`` files to a secure location. The :ref:`gen.key <gen-key>` provides details to encrypt and decrypt |onprem|\s backing databases and user credentials. |onprem| might delete these files as part of the upgrade process. |
| 26 | + - Your :ref:`application database <appdb-om-arch>`. If the upgrade fails, you need a current backup to restore your |onprem| instance. |
| 27 | + |
| 28 | +1. Upgrade |onprem| by following the considerations, prerequisites, and procedure in :ref:`upgrade-om`. |
| 29 | + |
| 30 | +2. Reference :ref:`compatible-mdb-versions` to ensure your :term:`backing databases` use a MongoDB version that is compatible with the new |onprem| version. |
| 31 | + |
| 32 | +3. If you need to upgrade your backing databases to a compatible MongoDB version, see :ref:`meko-upgrade-mdb-version`. |
| 33 | + |
| 34 | +Procedure |
| 35 | +--------- |
| 36 | + |
| 37 | +1. In your :ref:`k8s-om-specification`, set the following: |
| 38 | + |
| 39 | + - Set :opsmgrkube:`spec.version` to the new |onprem| version. |
| 40 | + - If you upgraded your :ref:`application database <appdb-om-arch>`, set :opsmgrkube:`spec.applicationDatabase.version` to the compatible MongoDB version. Consider setting :setting:`spec.featureCompatibilityVersion` to give yourself the option to downgrade if necessary. |
| 41 | + |
| 42 | + For example, the following resource updates |onprem| from 4.0 to 5.0 and the application database to MongoDB ``4.2.11-ent``. |
| 43 | + |
| 44 | + .. literalinclude:: /reference/k8s/example-ops-manager.yaml |
| 45 | + :language: yaml |
| 46 | + :linenos: |
| 47 | + |
| 48 | +2. Reapply the configuration to |k8s|: |
| 49 | + |
| 50 | + .. code-block:: none |
| 51 | + |
| 52 | + kubectl apply -f <om-resource-specification>.yaml |
| 53 | + |
| 54 | + |k8s| automatically reconfigures your deployment with the new specifications. You can see these changes reflected in your |mms| or :cloudmgr:`Cloud Manager </>` application. |
0 commit comments