title: How to copy files to container in kubernetes yaml
body: <p>I understand that files / folders can be copied into a container using the command:</p>
  
  <pre><code>kubectl cp /tmp/foo_dir &lt;some-pod&gt;:/tmp/bar_dir
  </code></pre>
  
  <p>However, I am looking to do this in a yaml file</p>
  
  <p>How would I go about doing this? (Assuming that I am using a deployment for the container)</p>