Search code examples
google-cloud-platformgoogle-cloud-filestore

Upload or download files to Filestore mounted on GKE


I have mounted a Filestore instance in my Kubernetes cluster. Can I upload some files from my local computer to the Filestore instance? It would be like uploading files to google drive, but in Filestore.


Solution

  • Connect to Filestore outside the VPC network is not possible.

    But it is possible to upload/dowload files from a machine outside the VPC network to Google Storage.

    So the solution is upload the files to Google storage and then copy them inside the cluster using a pod that executes gsutil rsync gs://bucket mount-directory.

    The pod can be replaced by a VM machine connected to the VPC network.