Provisioning Read-Write-Many (RWM) PVCs

    Below are advantage of using NFS provisioner over OpenEBS cStor volumes

    • NFS data is replicated, highly available across zones if configured accordingly

    Select or create a cStor pool

    Select or create a cStor pool that satisfies the performance, and availability requirements

    to point to the above selected pool and also select number of replicas and default size of the volume.

    Create a namespace for deploying NFS server provisioner

    Deploy NFS server provisioner

    Deploy NFS server provisioner into the above namespace using stable helm chart. Pass the following main parameter values.

    • namespace: Namespace for the NFS server provisioner which you have created in the previous section.
    • name: Release name for helm installation.
    • persistence.storageClass: StorageClass used for provisioning cStor volume.
    • storageClass.name: Provide a name for NFS StorageClass to be created which can be used by the web application PVCs.

    Note: It is recommended that the OpenEBS storage class specifies 10% more space than what is required by the RWM PVC. For example, if RWM PVC requires 100G, then provision cStor volume with 110G.

    Provision RWX volume using the PVC

    Use the StorageClass which is created in above command and create a new PVC and use the volume in your applications.

    When multiple NFS shares are needed, use multiple NFS provisioners. Each NFS server manages one NFS server. Same or different OpenEBS StorageClass can be used for multiple NFS provisioners.