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:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: cloned-pvc
storageClassName: longhorn
dataSource:
name: source-pvc
kind: PersistentVolumeClaim
resources:
requests:
storage: 10Gi
Available since v1.2.0