MongoDB Kubernetes Enterprise Operator 1.19.1
·
46 commits
to master
since this release
Warning
- Avoid using the
1.19.0version of the operator as it is tied to a broken release on the Openshift Marketplace.
MongoDB Resource
- Added support for setting replica set member votes by introducing the
spec.memberOptions.[*].votesfield. - Added support for setting replica set member priority by introducing the
spec.memberOptions.[*].priorityfield. - Added support for setting replica set member tags by introducing the
spec.memberOptions.[*].tagsfield.
MongoDBMulti Resouce
- Added support for setting replica set member votes by introducing the
spec.clusterSpecList.[*].memberOptions.[*].votesfield. - Added support for setting replica set member priority by introducing the
spec.clusterSpecList.[*].memberOptions.[*].priorityfield. - Added support for setting replica set member tags by introducing the
spec.clusterSpecList.[*].memberOptions.[*].tagsfield.
Improvements
- New guidance for multi-Kubernetes-cluster deployments without a Service Mesh. It covers use of a Load Balancer Service
to expose ReplicaSet members on an externally reachable domain (spec.externalAccess.externalDomain).
This leverages setting theprocess.hostnamefield in the Automation Config.
This tutorial provides full guidance. spec.security.authentication.ldap.transportSecurity: "none" is now a valid configuration to use no transportSecurity.- Allows you to configure
podSpecper shard in a MongoDB Sharded cluster by specifying an array ofpodSpecsunderspec.shardSpecificPodSpecfor each shard.
Deprecations
- Making the field orgID in the project configmap a requirement. Note: If explicitly an empty
orgID = ""has been chosen then OM will try to create an ORG with the project name. - Ubuntu-based images were deprecated in favor of UBI-based images in operator version 1.17.0. In the 1.19.0 release we are removing the support for Ubuntu-based images. The ubuntu based images won't be rebuilt daily with updates. Please upgrade to the UBI-based images by following these instructions: https://www.mongodb.com/docs/kubernetes-operator/master/tutorial/migrate-k8s-images/#migrate-k8s-images
- The
spec.exposedExternallyoption becomes deprecated in favor ofspec.externalAccess. The deprecated option will be removed in MongoDB Enterprise Operator 1.22.0.
Bug fixes
- Fixed handling of
WATCH_NAMESPACE='*'environment variable for multi-cluster deployments with cluster-wide operator. In some specific circumstances, API clients for member clusters were configured incorrectly resulting in deployment errors.- Example error in this case:
The secret object 'mdb-multi-rs-cert' does not contain all the valid certificates needed: secrets "mdb-multi-rs-cert-pem" already exists
- These specific circumstances were:
WATCH_NAMESPACE='*'environment variable passed to the operator deployment- specific namespace set in kubeconfig for member clusters
- not using multi-cluster cli tool for configuring
- Possible workarounds:
- set WATCH_NAMESPACE environment variable to specific namespaces instead of '*'
- make sure that kubeconfigs for member clusters doesn't specify a namespace
- Example error in this case:
Breaking changes
-
Renaming of the multicluster CRD
MongoDBMultitoMongoDBMultiCluster -
The
spec.membersfield is required to be set in case of MongoDB deployment of typeReplicaSet.
Bug fixes
- Fixed a panic when
CertificatesSecretsPrefixwas set but no furtherspec.security.tlssetting was set i.e.tls.additionalCertificateDomainsortls.ca.