<p>New to Docker/K8s. I need to be able to mount all the containers (across all pods) on my K8s cluster to a shared file system, so that they can all read from and write to files on this shared file system. The file system needs to be something residing inside of -- or at the very least accessible to -- all containers in the K8s cluster.</p>
<p>As far as I can tell, I have two options:</p>
<ol>
<li>I'm guessing K8s offers some type of persistent, durable block/volume storage facility? Maybe PV or PVC?</li>
<li>Maybe launch a Dockerized Samba container and give my others containers access to it somehow?</li>
</ol>
<p>Does K8s offer this type of shared file system capability or do I need to do something like a Dockerized Samba?</p>

hotmeatballsoup
<p>You are right you can use the File system in the backend with Access Mode <strong>ReadWriteMany</strong>.</p>
<p><strong>ReadWirteMany</strong> will allow the container to mount to a single PVC and write on it.</p>
<p>You can also use the NFS system as suggested by the gohm'c, for NFS you can set up the <strong>GlusterFS</strong> or <strong><a href="https://min.io/" rel="nofollow noreferrer">MinIO</a></strong> containers.</p>
<p>Read more about the Access mode <strong>ReadWriteMany</strong> : <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></p>
