User, its password is set in psmdb-values.yaml By default, clusters provisioned with our Operator have userAdmin To get there, I altered the affinity keys in the corresponding sections of psmdb-values.yaml : antiAffinityTopologyKey: "/zone" Prepare MongoDBįor Rocket.Chat to connect to our database cluster, we need to create the users. Replica set nodes are going to be distributed across availability zones. Install the Operator into the percona namespace: helm install psmdb-operator percona/psmdb-operator -create-namespace -namespace perconaĭeploy the cluster of Percona Server for MongoDB nodes: helm install my-db percona/psmdb-db -f psmdb-values.yaml -n percona I’m going to use helm to deploy the Operator and the cluster.Īdd helm repository: helm repo add percona Read more about this in the documentation. In 3 availability zones: gcloud container clusters create -zone us-central1-a -node-locations us-central1-a,us-central1-b,us-central1-c percona-rocket -cluster-version 1.21 -machine-type n1-standard-4 -preemptible -num-nodes=3 The following command deploys GKE cluster named percona-rocket Rock’n’RollĪll YAML manifests that I use in this blog post can be found in this repository. This blog post is a walkthrough of running a production-grade deployment of Rocket.Chat with Percona Operator for MongoDB. There are no hidden costs and it is truly open source. Percona Operator for MongoDB, compared to other solutions, is not only the most feature-rich but also comes with various management capabilities for your MongoDB clusters – backups, scaling (including sharding), zero-downtime upgrades, and many more. Rocket.Chat will be exposed via a load balancer.Deploy Rocket.Chat with specific affinity rules.Deploy Percona Operator for MongoDB and database cluster with it. ![]() It can be any other Kubernetes flavor or service, but I rely on multi-AZ capability in this blog post. Start a Google Kubernetes Engine (GKE) cluster across multiple availability zones.Our goal is to have a Rocket.Chat deployment which uses highly available Percona Server for MongoDB cluster as the backend database and it all runs on Kubernetes.
0 Comments
Leave a Reply. |