Preparing MongoDB Storage

About this task

Follow the steps below to create the EFS access point, Persistent Volume (PV), and Persistent Volume Claim (PVC) for MongoDB.

Procedure

  1. Create an EFS access point for MongoDB. The root directory for this access point will be /bitnami/mongodb:
  2. Create the Persistent Volume (PV) using the EFS driver and the access point you just created:
  3. Create the Persistent Volume Claim (PVC) and bind it to the PV:
  4. Verify that the PVC was created and successfully bound to the PV:
    Example output: