Docs Menu
Docs Home
/
MongoDB Enterprise Kubernetes Operator
/ /

Upgrade MongoDB Version

On this page

You can upgrade the major or minor versions of your MongoDB resource. Configure these settings in your MongoDB Database Resource Specification.

To upgrade your resource's major or minor versions, set the spec.version setting to the desired MongoDB version.

Note

If you update this value to a later version of MongoDB for your database resources, the feature compatibility version remains at the MongoDB version you're upgrading from to give you the option to downgrade if necessary. If you want the feature compatibility version to match the new MongoDB version, you must manually set spec.featureCompatibilityVersion to the new version or to AlwaysMatchVersion. To learn more, see spec.featureCompatibilityVersion.

To upgrade the standalone deployment's MongoDB version from 4.2.2-ent to 4.4.18-ent, complete the steps in the following example.

1
---
apiVersion: mongodb.com/v1
kind: MongoDB
metadata:
name: my-standalone-downgrade
spec:
version: "4.4.18-ent"
type: Standalone
project: my-project
credentials: my-credentials
persistent: false
...
2
kubectl apply -f <standalone-config>.yaml

Kubernetes automatically reconfigures your deployment with the new specifications. You can see these changes reflected in your Ops Manager or Cloud Manager application.

Back

Edit a Database Resource

On this page