What would be an ideal way to share writable volume across containers for a web server?

前端 未结 3 876
半阙折子戏
半阙折子戏 2020-12-22 12:25

The application in question is Wordpress, I need to create replicas for rolling deployment / scaling purposes.

It seem can\'t create more then 1 instance of the sam

3条回答
  •  心在旅途
    2020-12-22 12:54

    In https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistent-volumes you can see a table with the possible storage classes that allow ReadWriteMany (the option you are looking for).

    • AzureFile (not suitable if you are using GCP)
    • CephFS
    • Glusterfs
    • Quobyte
    • NFS
    • PortworxVolume

    The one that I've tried is that of NFS. I had no issues with it, but I guess you should also consider potential performance issues. However, if the writes are to be occassional, it shouldn't be much of an issue.

提交回复
热议问题