I am evaluating Kubernetes as a platform for our new application. For now, it looks all very exciting! However, I’m running into a problem: I’m hosting my cluster on GCE an
Helm: if you use helm to deploy
If you have a PVC that only supports RWO and you want many pods to be able to read from the same PVC and share that storage, then you can install the helm chart stable/nfs-server-provisioner if your cloud provider does not support RWX access mode.
This chart provisions "out-of-tree" storage PVCs with RWX access mode that access the underlying PVC from a cloud provider that only supports RWO, like Digital Ocean.
In your pods, you mount the PVC provisioned by the nfs server and you can scale them while they read and write from the same PVC.
Important!
You have to modify the values file to add configuration suited to your deployment like your storage class.
For more information on the chart: https://github.com/helm/charts/tree/master/stable/nfs-server-provisioner