<p>I need to build an application that has many <strong>bare-metal</strong> nodes joined in a Kubernetes cluster and I need a shared persistent file system between those <strong>nodes</strong>. The nodes should be able to read-write in this file system simultaneously.</p>

<p>Bonus: is there a way to keep the file system alive even if the cluster crashes?</p>

<p>I read <a href="https://kubernetes.io/docs/concepts/storage/persistent-volumes/" rel="noreferrer">this</a> article but cant find answers to this question.</p>

<p>This problem is very important to me because it is a requirement to my undergraduate paper.</p>

<p>Yes it does. What you're looking for is to set your AccessMode to <code>ReadWriteMany</code>.
Note that not all Volume Plugins provide <code>ReadWriteMany</code>.</p>

<p>Multiple pods might be reading/writing to the Volume plugin at the same time. If a node/pod were to restart, you would still have access to the volume.</p>

<p>To get a full list of what which Volume Plugin supports that, refer to the <a href="https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes" rel="noreferrer">official documentation</a>.</p>
