<p>So, I need to reverse engineer how an application works and it is deployed on a kubernates pod. This has been assigned to me after the previous developers just &quot;left&quot;.</p>
<p>I need to download some files from that pod. I access it using Kubernates Dashboard by clicking the View Logs Button of the Pod.</p>
<p>How can I copy files from this pod to my local? There is a zip file and I want to inspect and read it contents.</p>
<p>How can I download other files?</p>
<p>kubectl cp didn't work for me.</p>
<p><a href="https://i.stack.imgur.com/NsnGK.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NsnGK.jpg" alt="enter image description here" /></a></p>

10101010
<p>As a first step please install <a href="https://kubernetes.io/docs/tasks/tools/#kubectl" rel="nofollow noreferrer">kubectl</a>.</p>
<p>Then make sure that you have access to <code>k8s</code> cluster where the pod is running. This is done via <a href="https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/" rel="nofollow noreferrer">kubeconfig</a>. Since you are on <code>AWS</code> it can be done with following command</p>
<pre><code>aws eks update-kubeconfig --region region-code --name my-cluster
</code></pre>
<p>Next is just check execution of command:</p>
<pre><code>kubectl cp &lt;pod-name&gt;:&lt;fully-qualified-file-name&gt; /&lt;path-to-your-file&gt;/&lt;file-name&gt; -c &lt;container-name&gt;
</code></pre>
