Docs Menu
Docs Home
/
MongoDB Enterprise Kubernetes Operator
/ /

Choose Kubernetes Operator Installation Mode: Single- or Multi-Kubernetes Clusters

On this page

  • Kubernetes Operator Watches Single-Kubernetes Cluster Resources
  • Kubernetes Operator Watches Multi-Kubernetes Cluster Resources
  • Kubernetes Operator Watches Resources in a Single- and Multi-Kubernetes Cluster

The Kubernetes Operator can manage custom resources for single- and multi-Kubernetes clusters. Before you install the Kubernetes Operator, decide which type of Kubernetes cluster deployment you want to support, single- or multi-Kubernetes cluster.

You can configure the Kubernetes Operator to watch Ops Manager resources and MongoDB resources for a replica set or a sharded cluster in a single Kubernetes cluster. For steps, see Install the Operator.

You can configure the Kubernetes Operator to watch Ops Manager resources, MongoDB resources, and MongoDBMultiCluster resources for a replica set in a multi-Kubernetes cluster. For steps, see Multi-Kubernetes-Cluster Quick Start.

You can configure the Kubernetes Operator to watch the following types of CustomResourceDefinitions:

  • MongoDB resources

  • Ops Manager resources

  • MongoDBUsers resources

  • MongoDBMultiCluster resources

Depending on the watched resources, the Kubernetes Operator reconciles resources based on the given CustomResourceDefinition.

To support custom resources deployed in single- and multi-Kubernetes clusters, set up one instance of the Kubernetes Operator that will watch for and reconcile custom resources for a single Kubernetes cluster and a multi-Kubernetes cluster MongoDB deployment. Use different non-overlapping subsets of namespaces for each type of resource.

Set .Values.operator.watchedResources as follows:

-watch-resource=MongoDB \
-watch-resource=OpsMnagers \
-watch-resource=MongoDBusers \
-watch-resource=MongoDBMultiCluster

Note

Install and set up a single Kubernetes Operator instance and configure it to watch one, many, or all custom resources in different, non-overlapping subsets of namespaces. See also Does MongoDB support running more than one Kubernetes Operator instance?

After deciding how you want to install the Kubernetes Operator, you can:

← Container Images