<p>I have scenario when my cluster consist of two microservices.</p>
<p>In service <strong>A</strong> i have .CSV(15MB) file, which also is needed in service <strong>B</strong>.</p>
<p>I don't want to place this file two times in each repo.</p>
<p>During deployment of service <strong>A</strong> I want to place this .csv file in some kind of shared volume, that pod containing service <strong>B</strong> can consume and process it.
Any ideas and best practices how to do it?</p>
<p>Best regards</p>

<p>If you need both microservice that can read and write to a file, then you need a <code>sharedStorage</code> that supports the <code>ReadWriteMany</code> accessMode. There are a couple of options in Kubernetes like:</p>
<ul>
<li>NFS</li>
<li>CephFS</li>
<li>Glusterfs</li>
</ul>
<p>You could find more on this topic <a href="https://stackoverflow.com/questions/31693529/how-to-share-storage-between-kubernetes-pods">here</a>.</p>
<p>Another solution would be using object storages like <code>s3</code>.</p>
