Kubernetes: Running MongoDB on Kubernetes with StatefulSets

Hits: 22105

Running MongoDB replica set with one click is the goal. Perhaps this will help.

At Google, everything runs in a container, including databases. You just need the right tools. Kubernetes 1.5 includes the new StatefulSet API object (in previous versions, StatefulSet was known as PetSet). With StatefulSets, Kubernetes makes it much easier to run stateful workloads such as databases.

Source: Kubernetes: Running MongoDB on Kubernetes with StatefulSets

I have not yet done this project with Kubernetes, that will be the next stage, especially as the newest version is supposed to come with DNS for Multi Region installations.
I have done this with Docker Swarm via CloudFormation.
Create MongoDB Replica Set in Docker on Ubuntu

The simplest way to create a multi region MongoDB Replica set using Docker Swarm is to use our scripts that are already written. They launch a CloudFormation and the scripts written below.

In order to run the CloudFormation you need to subscribe to the AWS Image in the AWS Marketplace.

https://aws.amazon.com/marketplace/pp/B01N9N0KFZ/

Then run the CloudFormation Script:

https://console.aws.amazon.com/cloudformation/

See our blog for full instructions to install MongoDB Replica Set in Docker Swarm:

MongoDB Replica Set in Docker Swarm Quick Installation Guide

You can read about installing a MongoDB Replica Set on Docker Swarm .

Running a MongoDB Replica Set on Docker 1.12 Swarm Mode: Step by Step

You can select various other MongoDB installations on Windows or Linux that we have installed in AWS Marketplace:

http://charmingcloud.net/product-category/mongodb/ 

Relate Blog articles

make xfs failed, “mkfs.xfs: No such file or directory” How to format XFS

Install MongoDB with Security on Windows Server 2016

Create MongoDB Database on Windows – NoSQL DB

 

Kubernetes: Running MongoDB on Kubernetes with StatefulSets

 http://charmingwebdesign.com/mongodb-replica-set-in-docker-swarm-quick-installation-guide