<p>I installed <code>minikube</code> and started <code>Jenkins</code> inside a <code>pod</code>. I am able to create a new job and execute it inside a dynamically created <code>maven container</code>. However. I have a folder in my <code>host</code> machine which is a <code>Mac</code> based and I need that folder inside this dynamically created <code>pod</code> when the job is started. How can I achieve that?</p>

Damien-Amen
<p>Option 1.</p>

<p><a href="https://kubernetes.io/docs/setup/minikube/#interacting-with-your-cluster" rel="nofollow noreferrer">https://kubernetes.io/docs/setup/minikube/#interacting-with-your-cluster</a></p>

<p>configure kubectl on your MAC, then use <code>kubectl cp &lt;hostdir&gt; &lt;podname&gt;:&lt;dir&gt;</code></p>

<p>Option 2.</p>

<p>use the Host path option for POD, like this post</p>

<p><a href="https://stackoverflow.com/questions/48534980/mount-local-directory-into-pod-in-minikube">Mount local directory into pod in minikube</a></p>
