<p>We have data stored on a persistent volume attached to a k8s pod on google cloud. And we want to copy these data over to another persistent volume attached to a different pod on the same cluster.</p>
<p>Is there any direct way to do this? We don't want to leverage other storage as an intermediate though.</p>

<p>You can use the <a href="https://velero.io/" rel="nofollow noreferrer">velero</a> to move the <strong>PV</strong> and <strong>PVC</strong> across the <strong>cluster</strong></p>
<p>for that,<a href="https://velero.io/" rel="nofollow noreferrer">enter link description here</a> you can use the tool velero</p>
<p>which will <strong>snapshot</strong> the disk clone the data and create the new PV and PVC for you</p>
<p>You can use this article for reference : <a href="https://faun.pub/clone-migrate-data-between-kubernetes-clusters-with-velero-e298196ec3d8" rel="nofollow noreferrer">https://faun.pub/clone-migrate-data-between-kubernetes-clusters-with-velero-e298196ec3d8</a></p>
<p>You need to create the Bucket and service account</p>
<p>Bucket will be used to store the state and service account for access purpose</p>
<p>Velero can be used across different cloud provider also</p>
<p>you can use the existing GCP plugin and using that migrate PV or PVC or any resource of the Kubernetes</p>
<p>Velero install example :</p>
<pre><code>velero install --provider gcp --plugins velero/velero-plugin-for-gcp:v1.0.0 --bucket BUCKET-NAME --secret-file SECRET-FILENAME 
</code></pre>
