Multi-Cluster Quick Start

On this page

Use the quick start to deploy a MongoDB replica set across three Kubernetes member clusters, using GKE (Google Kubernetes Engine) and Istio service mesh.

Services and Tools

The quick start relies on the following services, tools, and their documentation:

  • Kubernetes clusters. The quick start uses GKE (Google Kubernetes Engine) to provision multiple Kubernetes clusters. Each Kubernetes member cluster hosts a MongoDB replica set deployment and represents a data center that serves your application.
  • MongoDB Enterprise Kubernetes Operator repository with configuration files that the Kubernetes Operator needs to deploy a Kubernetes cluster.
  • MongoDB Helm Charts for Kubernetes with charts for multi-Kubernetes-cluster deployments.
  • Istio service mesh.
  • multi-cluster kubeconfig creator tool that performs the following actions:
    • Creates a single mongodb namespace in the central cluster and each member cluster.
    • Creates Service Accounts, Roles, and RoleBindings in the central cluster and each member cluster.
    • Puts Service Account token secrets from each member cluster into a single kubeconfig file and saves the file in the central cluster. This enables authorized access from the Kubernetes Operator installed in the central cluster to the member clusters.
Multi-Cluster Prerequisites
Set up GKE (Google Kubernetes Engine) clusters, install tools, set the deployment’s scope, and check connectivity across member clusters.
Quick Start Procedure
Deploy multi-Kubernetes-cluster deployments.