0

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?

Tauseef Khan
  • 117
  • 6
Mugen
  • 8,301
  • 10
  • 62
  • 140
  • 1
    Why can’t you access it over NFS from the web server? NFS has some non-POSIX behaviors if there are multiple clients, but if you only have one writer node, it should basically work as you’d expect out of the box. – Dan Dec 27 '18 at 06:28

2 Answers2

3

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
  • 2,456
  • 6
  • 12
1

You could just use Cloud Filestore as a network attached file storage for Compute Engine instances and GKE instances. That way you could have multiple writers and readers

Musili Alfred M.
  • 3,085
  • 1
  • 15
  • 12