<p>I am running my script inside a Kubernetes container and a zip file is downloaded.</p>
<ol>
<li><p>I want to verify how can I access the content inside a zip file when I am triggering tests from a windows machine and the tests are running inside the Kubernetes container through automation.</p>
</li>
<li><p>How can I do mapping of the Kubernetes downloads folder so that I can access it as a windows folder on my local machine even after the testcase execution is completed.</p>
</li>
</ol>

<blockquote>
<p>I want to verify how can I access the content inside a zip file when I
am triggering tests from a windows machine and the tests are running
inside the Kubernetes container through automation.</p>
</blockquote>
<p>If it's possible for you to write API uploading the zip file to storage you can do that also. Like S3 AWS or any other storage and access file from there, which may cost some extra if zip files are large.</p>
<p>There is also other option to save data in Disk Persitenet volume, if you are running managed services GKE, EKS you wont be able to access that data directly to local PC.</p>
<p>If you are running locally on windows PC you can mount the folder to POD and access created zip to local system.</p>
<blockquote>
<p>How can I do mapping of the Kubernetes downloads folder so that I can
access it as a windows folder on my local machine even after the
testcase execution is completed.</p>
</blockquote>
<p>You can use <strong><a href="https://stackoverflow.com/questions/45090337/kubernetes-on-windows-persistent-volume">hostpath</a></strong> Volume type in your pod spec to mount a file or directory from the host node’s filesystem.</p>
<p>POD example :</p>
<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: hostpath-volume-pod
spec:
  containers:
  - name: my-hostpath-volume-pod
    image: &lt;Image name&gt;
    volumeMounts:
    - name: foo
      mountPath: &quot;C:\\etc\\foo&quot;
      readOnly: true
  volumes:
  - name: foo
    hostPath:
     path: &quot;C:\\etc\\foo&quot;
</code></pre>
