<p>Sorry if this is a noob question:</p>

<p>I am creating a pod in a kubernetes cluster using a pod defintion yaml file. </p>

<p>This pod defines just one container. I'd like to ... copy a few files to a particular directory in the container.</p>

<p>sort of like in docker-compose:</p>

<pre><code>volumes:
      - ./testHelpers/certs:/var/private/ssl/certs
</code></pre>

<p>Is it possible to do that at this point (point of defining the pod?) </p>

<p>If not, what could my alternatives be?</p>

<p>PS - I understand that the sample from docker-compose is very different since this maps local directory to a directory in container</p>

Greg Bala
<p>It's better to use volumes in pod definition. 
<a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-initialization/" rel="nofollow noreferrer">Initialize the pod before the container runs</a></p>

<p>Apart from this, you can also use ConfigMap to store certs and other config files you needed and than can access them in the container as volumes.
<a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#add-configmap-data-to-a-volume" rel="nofollow noreferrer">More details here</a></p>
