<p>I want to add or copy files into persistent volume and then use  it in container using volume mount ?any help</p>

Ameer khan
<p>Once PVC/PV are created (<a href="https://kubernetes.io/docs/concepts/storage/persistent-volumes/" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/storage/persistent-volumes/</a>), there are number of possible solutions.</p>
<p>For specific question, options 1 and 2 will suffice. Listing more for reference, however this list does not try to be complete.</p>
<ol>
<li>Simplest and native, <code>kubectl cp</code>: <a href="https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#cp" rel="nofollow noreferrer">https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#cp</a></li>
<li><code>rsync</code> - still quite simple, but also robust. Recommended for a task (both of below options were tested)</li>
</ol>
<ul>
<li>TO pod: <a href="https://serverfault.com/questions/741670/rsync-files-to-a-kubernetes-pod">https://serverfault.com/questions/741670/rsync-files-to-a-kubernetes-pod</a></li>
<li>FROM pod: <a href="https://cybercyber.org/using-rsync-to-copy-files-to-and-from-a-kubernetes-pod.html" rel="nofollow noreferrer">https://cybercyber.org/using-rsync-to-copy-files-to-and-from-a-kubernetes-pod.html</a></li>
</ul>
<ol start="3">
<li><code>tar</code>, but incremental: <a href="https://www.freshleafmedia.co.uk/blog/incrementally-copying-rsyncing-files-from-a-kubernetes-pod" rel="nofollow noreferrer">https://www.freshleafmedia.co.uk/blog/incrementally-copying-rsyncing-files-from-a-kubernetes-pod</a></li>
<li>Tools for synchronisation, backup, etc</li>
</ol>
<ul>
<li>For example, <a href="https://github.com/backube/volsync" rel="nofollow noreferrer">https://github.com/backube/volsync</a></li>
</ul>
