- #Mongo grant readwrite any db install
- #Mongo grant readwrite any db driver
- #Mongo grant readwrite any db registration
- #Mongo grant readwrite any db download
#Mongo grant readwrite any db install
Step 3: Configure and Apply Your Cluster Components Install the MongoDB Community Operator Once you’ve registered all of your clusters, you should be able to start stateful applications and fail them over between your clusters.Īt this point, your topology will be as follows: Configure the default state’s corresponding storage class ( ) as the default storage class.Add the cluster’s location(s) to the default state, if the default state doesn’t span this location yet.
#Mongo grant readwrite any db driver
You need to register all the clusters between which you want to move your stateful applications. To register another cluster, either switch to the appropriate context and run the above command. The Statehub CLI makes use of your Kubernetes configuration contexts to identify your clusters and is aware of the current context. To use Statehub with your Kubernetes clusters, register them using the Statehub CLI. If you wish your data to be replicated to another location, and create a cluster on-demand if needed, follow the procedure to add a location to a state. In certain scenarios, you might not have a second cluster in place at another location.
#Mongo grant readwrite any db registration
The following command registers the cluster associated with your current context:įor further information about the cluster registration process go to Statehub – Cluster Registration Step 2: Register Your Clusters with Statehub Register the Clusters Using the Statehub CLI Your Statehub CLI installation should now be configured. Copy the token to the CLI prompt and press Enter. Once you’ve logged in to your Statehub account, you should be automatically redirected to the tokens page and prompted to create a token for your CLI. If you don’t already have a Statehub account, you can create one on the Statehub login page. After installation is complete, copy the link to your browser and go to the Statehub login page. Setting up your Kubernetes clusters to use Statehub requires using the Statehub CLI.
#Mongo grant readwrite any db download
Step 1: Set Up the Statehub CLI Go to Get-Statehub to Download and Install the Statehub CLI This guide assumes you have two Kubernetes clusters in two distinct cloud locations, similar to the topology below: