Creating a new volume as a duplicate of an existing volume

    You can create a new PVC that has the exact same content as the source-pvc by applying the following yaml file:

    1. apiVersion: v1
    2. kind: PersistentVolumeClaim
    3. metadata:
    4. name: cloned-pvc
    5. storageClassName: longhorn
    6. dataSource:
    7. name: source-pvc
    8. kind: PersistentVolumeClaim
    9. resources:
    10. requests:
    11. storage: 10Gi

    Available since v1.2.0