diff --git a/images/images/version1.3.0/use-cases/configure-mongodb/replicaset-outside-clusters.png b/images/images/version1.3.0/use-cases/configure-mongodb/replicaset-outside-clusters.png index 17aad7f..a716b61 100644 Binary files a/images/images/version1.3.0/use-cases/configure-mongodb/replicaset-outside-clusters.png and b/images/images/version1.3.0/use-cases/configure-mongodb/replicaset-outside-clusters.png differ diff --git a/versioned_docs/version-1.3.0/use-cases/mongodb/distributed-mongodb-for-multicloud.mdx b/versioned_docs/version-1.3.0/use-cases/mongodb/distributed-mongodb-for-multicloud.mdx index ba4cfe0..34ade5a 100644 --- a/versioned_docs/version-1.3.0/use-cases/mongodb/distributed-mongodb-for-multicloud.mdx +++ b/versioned_docs/version-1.3.0/use-cases/mongodb/distributed-mongodb-for-multicloud.mdx @@ -1,8 +1,9 @@ # Distributed MongoDB Spanning Multi Cloud/Cluster using KubeSlice -This topic demonstrates the steps to setup the distributed MongoDB across multiple cloud/clusters using KubeSlice. -We will use three Kubernetes clusters to install KubeSlice, create a slice, and onboard application onto the slice -to span the application across the multiple clusters. +This topic demonstrates steps to set up the distributed MongoDB across multiple clouds/clusters using KubeSlice. +We will use three Kubernetes clusters for demonstration. Install the KubeSlice Controller and MongoDB master on one cluster. +Install the KubeSlice Worker and MongoDB members on all three clusters. Create a slice and onboard applications onto +a slice to span the application across multiple clusters. ## Prerequisites @@ -17,17 +18,16 @@ Before you begin, ensure the following prerequisites are met: 3. Install [Kubectx](https://github.com/ahmetb/kubectx) to easily switch context between clusters. 4. Kubeconfig files to access the Kubernetes clusters. - + Example - ```yaml + + ``` k8s-cluster-1.config # kubeslice controller cluster, kubeslice worker cluster 1 and Mongodb master cluster & mongodb member cluster 1 k8s-cluster-2.config # kubeslice worker cluster 2 and mongodb member cluster 2 k8s-cluster-3.config # kubeslice worker cluster 3 and mongodb member cluster 3 - ``` - + ``` 5. Install [kubeSlice-cli](/versioned_docs/version-1.13.0/get-started/prerequisites/prerequisites-kubeslice-cli-install) based on the OS. - ## Configure Distributed MongoDB Let us configure the distributed MongoDB on multi cloud using KubeSlice. @@ -118,9 +118,7 @@ To create a slice: ``` -2. Create a slice called demo-slice using one of the following command based on the Slice Gateway Type: - - - With OpenVPN SliceGateway Type: +2. Create a slice called `demo-slice` using the OpenVPN Slice Gateway Type: ``` kubectl apply -f distributed-mongodb/mongodb-slice/mongodb-slice.yaml @@ -163,7 +161,7 @@ To create a slice: helm repo add mongodb https://kubeslice.aveshalabs.io/repository/kubeslice-helm-ent-stage/ ``` -3. create the `mongodb-operator` namespace using the following command: +3. Create the `mongodb-operator` namespace using the following command: ``` NAMESPACE=mongodb-operator @@ -527,7 +525,7 @@ Setting the environment variables is a prerequisite. 5. Run the multi cluster CLI using the following command: - ``` + ```yaml CLUSTERS=$MDB_1,$MDB_2,$MDB_3 cd tools/multicluster go run main.go setup \ @@ -535,25 +533,26 @@ Setting the environment variables is a prerequisite. -member-clusters="${CLUSTERS}" \ -member-cluster-namespace="mongodb" \ -central-cluster-namespace="mongodb" + ``` - :::caution - If this script fails due to the Kubernetes cluster version being greater than 1.23. As service accounts don't automatically - create secrets, create the secret manually again in the three clusters using the below YAML file and run the go script again. - ::: + :::caution + If this script fails due to the Kubernetes cluster version being greater than 1.23. As service accounts don't automatically + create secrets, create the secret manually again in the three clusters using the below YAML file and run the go script again. + ::: - ``` - kubectl apply -f - <