Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.