<p>I have 2 microservices, one preparing a file and another reading it to handle HTTP requests. So I'm going to create a PVC and two deployments, one for each microservice. The deployment for the &quot;writing&quot; microservice will consist of a single pod, another deployment will be horizontally scalable. <a href="https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes" rel="nofollow noreferrer">There are 3 access modes</a>, but none of them seems to fit my needs perfectly, and the docs are not clear to me. So which PVC access mode should I choose?
It's very desirable to be able to keep those pods on different nodes.</p>

skozlov
<p>You need storage backend that supports <code>ReadWriteMany</code> access modes and then set appropriate access mode for each deployment at the claim level (for pod that generates a file you would use <code>ReadWriteOnce</code> and for the second deployment you would use <code>ReadOnlyMany</code> mode).</p>
<p>So in order this to work you will have to use <code>nfs</code>, <code>cephfs</code> or other plugin that support <code>ReadWriteMany</code>. More detailed plugin list can be found <a href="https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes" rel="nofollow noreferrer">here</a>.</p>
