title: Kubernetes - how to download a PersistentVolume's content
body: <p>I have a test executor <code>Pod</code> in K8s cluster created through helm, which asks for a dynamically created <code>PersistentVolume</code> where it stores the test results.</p>
  
  <p>Now I would like to get the contents of this volume. It seems quite natural thing to do.
  I would expect some <code>kubectl download pv &lt;id&gt;</code>. But I can't google up anything.</p>
  
  <p><strong>How can I get the contents of a <code>PersistentVolume</code>?</strong></p>
  
  <p>I am in AWS EKS; so AWS API is also an option. Also I can access ECR so perhaps I could somehow store it as an image and download?</p>
  
  <p>Or, in general, I am looking for a way to transfer a directory, can be even in an archive. But It should be <em>after</em> the container finished and doesn't run anymore.</p>