<p>Since NFS has single point of failure issue. I am thinking to build a storage layer using S3 or Google Cloud Storage as PersistentVolumn in my local k8s cluster.</p>
<p>After a lot of google search, I still cannot find an way. I have tried using s3 fuse to mount volume to local, and then create PV by specifying the hotPath. However, a lot of my pods (for example airflow, jenkins), complained about no write permission, or say &quot;version being changed&quot;.</p>
<p>Could someone help figuring out the right way to mount S3 or GCS bucket as a PersistenVolumn from local cluster without using AWS, or GCP.</p>

<p>S3 is not a file system and is not intended to be used in this way.</p>
<p>I do not recommend to use S3 this way, because in my experience any FUSE-drivers very unstable and with I/O operations you will easily ruin you mounted disk and stuck in <a href="https://stackoverflow.com/questions/37476114/s3fs-throws-error-as-transport-endpoint-is-not-connected">Transport endpoint is not connected</a> nightmare for you and your infrastructure users. It's also may lead to high CPU usage and RAM leakage.</p>
<p>Useful crosslinks:</p>
<ul>
<li><p><a href="https://stackoverflow.com/questions/51673011/how-to-mount-s3-bucket-on-kubernetes-container-pods/51677039">How to mount S3 bucket on Kubernetes container/pods?</a></p>
</li>
<li><p><a href="https://stackoverflow.com/questions/14010115/amazon-s3-with-s3fs-and-fuse-transport-endpoint-is-not-connected/14010199">Amazon S3 with s3fs and fuse, transport endpoint is not connected</a></p>
</li>
<li><p><a href="https://stackoverflow.com/questions/10801158/how-stable-is-s3fs-to-mount-an-amazon-s3-bucket-as-a-local-directory">How stable is s3fs to mount an Amazon S3 bucket as a local directory</a></p>
</li>
</ul>
