What should be used for sharing the volume of StatefulSet between its pods: NFS ou etcd?

5/7/2017

I want to deploy a high performance (multi node) database. To do that, StatefulSet will be used. So, what should be used for sharing the content of the database between the pods of the StatefulSet application? NFS could do the work? or etcd?

Thanks,

-- Amine Jallouli
etcd
kubernetes
nfs
statefulset

1 Answer

5/7/2017

What database do you want to use? etcd will not fit definitely, because it is a key\value storage service. If you want to use something like mongoDB then NFS should fit. Also look at the list of persistant volume types - https://kubernetes.io/docs/concepts/storage/persistent-volumes/#types-of-persistent-volumes

-- arykalin
Source: StackOverflow