Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Persistent volume with ReadWriteMany in GKE? [duplicate]

Is there a way to make a volume as ReadWriteMany instead of having a NFS share? Does GCP support ReadWriteMany volumes? I'm right now using NFS share and a persistent volume pointing it to NFS Share and then mounting it to pods. But this has a issue.

When NFS share has crashed or unable to connect, then all the pods that use this NFS persistent volume hangs. We can't even terminate the pods until the NFS issue is fixed. The pod doesn't crash either. We just had this issue and the pods were not responding for hours and terminating pod get stuck in terminating state. Once the NFS server issue is fixed then we can delete the pod and recreate it.

What can be done instead of having a NFS share?

like image 385
user630702 Avatar asked Dec 01 '25 20:12

user630702


1 Answers

With Kubernetes, you need a NFS like persistent volume to ReadWriteMany. On Google Cloud, Filestore is the product to achieve that. You have a documentation that show you how to mount it to your pod

like image 106
guillaume blaquiere Avatar answered Dec 03 '25 13:12

guillaume blaquiere



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!