Mount a kubernetes pod (on GKE) to google cloud storage to persist data

Viewed 1086

I am trying to persist the data of my pods on GKE (like a docker volume).

I came across two methods and I don't know which is the go to method.

  1. Using jcsFuse.
  2. Using persistent volume and persistent volume claims.

Which is the method that would allow me to mount my pods to google cloud storage?

Thank you for the help.

1 Answers

I post this community wiki answer to make solution discussed at the comment section more visible. Feel free to edid and improve.

As it was suggested by @meaningqo, Persistent Volumes + Claims are the Kubernetes way to go. You can find more information at the documentation.

Alternatively you can looks for NFS solution like Google Filestore. You can find more information at the documentation.

Related