How to setup a Persistent Volume using EFS

Last updated: June 26, 2025

Setup Persistent Volume

  1. Create an EFS using Duplocloud portal in your tenant

    1. Cloud Service --> Storage --> EFS --> Click "+ Add" button

      1. Name - EFS name

      2. Performance Mode - General Purpose

      3. Throughput Mode - Bursting

      4. Enable Backup - Disabled

      5. Enable Encryption - Enable

        image.png
  2. Now create a storage class

    1. Kubernetes --> Storage --> Storage class --> Click "+ Add" button

    2. Name - Storage class name

    3. Provisioner - efs.csi.aws.com

    4. Reclaim Policy - Delete

    5. Volume Binding Mode - Immediate

    6. Parameters --> Click "Set EFS parameters" --> Choose the EFS volume created in step 1

      image.png
  3. Create a new Persistent Volume Claim (PVC)

    1. Name - PVC name

    2. Storage Class Name - Choose the Storage class created in step 2

    3. Volume Name - Same as Name

    4. Volume Mode- Filesystem

    5. Access Mode - ReadWriteMany

    6. Resources - Update the storage value as per your need . Default is 10Gi

      image.png
  4. Update your service configuration to include the new PVC.

    - Name: test
      Path: /usr/share/nginx/html # this is the path to mount the EFS volume
      Spec:
        PersistentVolumeClaim:
          claimName: test # PVC name
    image.png
  5. Save the changes.

Note: Implementing these changes will require a service restart. Ensure you plan for a brief downtime during this configuration.

Usage

Once configured, the directory will persist across container restarts and redeployments. This ensures your data stored within the path mentioned in the volume remain intact.