<p>I have the following:</p>

<p>2 pod replicas, load balanced.
Each replica having 2 containers sharing network.</p>

<p>What I am looking for is a shared volume...</p>

<p>I am looking for a solution where the 2 pods and each of the containers in the pods can share a directory with read+write access. So if a one container from pod 1 writes to it, containers from pod 2 will be able to access the new data.</p>

<p>Is this achievable with persistent volumes and PVCs? if so what do i need and what are pointers to more details around what FS would work best, static vs dynamic, and storage class.</p>

<p>Can the volume be an S3 bucket?</p>

<p>Thank you!</p>

Assaf Moldavsky
<p>Refer to <a href="https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes</a> for all available volume backends (You need <code>ReadWriteMany</code> compatibility)</p>

<p>As you can find there <code>AWSElasticBlockStore</code> doesn't support it. You will need any 3rd party volume provider which supports <code>ReadWriteMany</code>.</p>

<p>UPD: Another answer <a href="https://stackoverflow.com/a/51216537/923620">https://stackoverflow.com/a/51216537/923620</a> suggests that AWS EFS works too.</p>
