0

Is there any shared volume solution between kubernetes worker nodes , like gfs2 .

For example when i create single mysql server with persistent volume , if Worker node(which mysql pod is running on) Fail , pod is automatically recreating on other nodes , but data has losed becouse of first worker node has gone down and persistent volume was on this failed worker node.

Can i use gfs2 clustered storage on worker node ?

ali mumcu
  • 11
  • 1
  • Theres a [large number of supported PV backends](https://kubernetes.io/docs/concepts/storage/persistent-volumes/#types-of-persistent-volumes). Perhaps one of them works? – robsiemb Nov 03 '19 at 18:50
  • You might find your answer here https://stackoverflow.com/questions/31693529/how-to-share-storage-between-kubernetes-pods but as @robsiemb already mentioned K8s supports a couple of persistent volume backends which support multiple writers like CephFS or Glusterfs. I personally haven't seen a solution with GFS2 yet. – yvesonline Nov 04 '19 at 08:51

1 Answers1

0

Agree with comments above and posting as a community wiki for future.

Relevant for 1.16 version. As per official Persistent Volumes documentation there is a list of volumes supported ReadWriteMany access mode:

  • AzureFile
  • CephFS
  • Glusterfs
  • Quobyte
  • NFS
  • PortworxVolume

enter image description here

Suggest you use one of them.

Vit
  • 7,740
  • 15
  • 40