- Deploy and Configure MongoDB Database Resources >
- Edit a Database Resource >
- Upgrade MongoDB Version and FCV
Upgrade MongoDB Version and FCV¶
You can upgrade the major, minor, or feature compatibility versions of your MongoDB resource. These settings are configured in your resource’s CustomResourceDefinition.
Overview¶
To upgrade your resource’s major or minor versions, set the
spec.version
setting to the desired MongoDB version.
To modify your resource’s
feature compatibility version,
set the spec.featureCompatibilityVersion
setting to the desired
version.
Note
If you update spec.version
to a later version, consider setting
spec.featureCompatibilityVersion
to the current working
MongoDB version to give yourself the option to downgrade if
necessary.
To learn more about feature compatibility, see
setFeatureCompatibilityVersion
in the MongoDB Server
Documentation.
Procedure¶
To upgrade the standalone deployment’s MongoDB version to
4.2.2-ent
, complete the following steps:
Change the resource’s CustomResourceDefinition as shown in the following example:¶
- Set
spec.version
to the desired MongoDB version. - Set
spec.featureCompatibilityVersion
to the current working MongoDB version:
The following example shows the result of this change:
Reapply the configuration to Kubernetes.¶
Kubernetes automatically reconfigures your deployment with the new specifications. You can see these changes reflected in your Ops Manager or Cloud Manager application.