New Features
- MongoDB: public preview release of multi kubernetes cluster support for sharded clusters. This can be enabled by setting
spec.topology=MultiCluster
when creating MongoDB
resource of spec.type=ShardedCluster
. More details can be found here.
- MongoDB, MongoDBMultiCluster: support for automated expansion of the PVC.
More details can be found here.
Note: Expansion of the pvc is only supported if the storageClass supports expansion.
Please ensure that the storageClass supports in-place expansion without data-loss.
- MongoDB This can be done by increasing the size of the PVC in the CRD setting:
- one PVC - increase:
spec.persistence.single.storage
- multiple PVCs - increase:
spec.persistence.multiple.(data/journal/logs).storage
- MongoDBMulti This can be done by increasing the storage via the statefulset override:
statefulSet:
spec:
volumeClaimTemplates:
- metadata:
name: data
spec:
resources:
requests:
storage: 2Gi # this is my increased storage
storageClass: <my-class-that-supports-expansion>
- OpsManager: Introduced support for Ops Manager 8.0.0
- MongoDB, MongoDBMulti: support for MongoDB 8.0.0
- MongoDB, MongoDBMultiCluster AppDB: change default behaviour of setting featurecompatibilityversion (fcv) for the database.
- When upgrading mongoDB version the operator sets the FCV to the prior version we are upgrading from. This allows to
have sanity checks before setting the fcv to the upgraded version. More information can be found here.
- To keep the prior behaviour to always use the mongoDB version as FCV; set
spec.featureCompatibilityVersion: "AlwaysMatchVersion"
- Docker images are now built with
ubi9
as the base image with the exception of mongodb-enterprise-database-ubi which is still based on ubi8
to support MongoDB
workloads < 6.0.4. The ubi8
image is only in use for the default non-static architecture.
For a full ubi9
setup, the Static Containers architecture should be used instead.
Bug Fixes
- MongoDB, AppDB, MongoDBMultiCluster: Fixed a bug where the init container was not getting the default security context, which was flagged by security policies.
- MongoDBMultiCluster: Fixed a bug where resource validations were not performed as part of the reconcile loop.