Accessing Google Cloud persistent disk from both GKE and independent web server

12/26/2018

Following this guide, I see how I can create a persistent disk in Google Cloud, than host it with an NFS server.

Now I have an NFS server I can use from my GKE nodes.

However, I want to also be able to post data to it from an independent web server, basically making it the only writer and the nodes the readers.

How can I access the disk remotely without deploying a VM instance of it?

Is it not a recommended use case for GC persistent disks?

-- Mugen
gce-persistent-disk
gcloud
google-kubernetes-engine
google-persistent-disk
nfs

1 Answer

12/28/2018

I do not believe it is possible as disks cannot be mounted as read/write on one instance and mounted as read only in another. NFS server would be the way to go.

-- dany L
Source: StackOverflow