title: What would be an ideal way to share writable volume across containers for a web server?
body: <p>The application in question is Wordpress, I need to create replicas for rolling deployment / scaling purposes. </p>
  
  <p>It seem can't create more then 1 instance of the same container, if it uses a persistent volume (GCP term):</p>
  
  <pre><code>The Deployment "wordpress" is invalid: spec.template.spec.volumes[0].gcePersistentDisk.readOnly: Invalid value: false: must be true for replicated pods &gt; 1; GCE PD can only be mounted on multiple machines if it is read-only
  </code></pre>
  
  <p>What are my options? There will be occasional writes and many reads. Ideally writable by all containers. I'm hesitant to use the network file systems as I'm not sure whether they'll provide sufficient performance for a web application (where page load is rather critical).</p>
  
  <p>One idea I have is, create a master container (write and read permission) and slaves (read only permission), this could work - I'll just need to figure out the Kubernetes configuration required. </p>