Ask Your Question
2

How can the Mongo Operator be used to deploy MongoDB in EKS/EFS?

asked 2021-04-19 11:00:00 +0000

nofretete gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-02-08 13:00:00 +0000

ladyg gravatar image

The Mongo operator can be used to deploy MongoDB in EKS/EFS in the following steps:

  1. Install the Mongo operator on your Kubernetes cluster.

  2. Create a persistent volume (PV) in EFS that will be used to store the MongoDB data.

  3. Create a persistent volume claim (PVC) that will request the storage space from the PV created in step 2.

  4. Configure the Mongo operator to use the PVC created in step 3 as the storage for MongoDB data.

  5. Specify the number of MongoDB replicas that you want to create and deploy.

  6. Configure the MongoDB stateful set to use the EFS storage backend by setting the volumeClaimTemplates to the PVC created in step 3.

  7. Deploy the MongoDB stateful set.

Once the MongoDB stateful set is deployed, the Mongo operator will take care of scaling, upgrades, and backups. It will also monitor the health of the MongoDB instances and ensure that they are running and available for use.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-04-19 11:00:00 +0000

Seen: 13 times

Last updated: Feb 08 '22