On Sunday, July 2, 2017 at 3:08:18 PM UTC-7, Rodrigo Campos wrote: > On Fri, Jun 30, 2017 at 09:26:22AM -0700, thst...@gmail.com wrote: > > I have the following setup: > > > > One node with > > 1) Golang app using read only RocksDB. > > 2) Docker image with RocksDB mounted to host node’s filesystem > > Need to create at least two Pods using same RocksDB (it is big and needs to > > be just one copy). > > Also later I need to create one more node with exactly the same > > configuration. The two nodes to be load balanced. > > > > The node's disk is SSD and I want the RocksDB data to be stored locally on > > the same node. > > For RocksDB data storage I am exploring hostPath. From the documentation: > > "A hostPath volume mounts a file or directory from the host node’s > > filesystem into your pod." > > Host-based storage is similar to Docker volumes, where a portion of the > > host’s storage becomes available to the pod. > > > > What concerns me is the following: > > Once a pod is terminated, the volume gets automatically deleted. > > > > Because it is a database I need to remain on the node's filesystem. > > > > How to solve those challenges with Kubernetes? > > Kubernetes 1.7 added *alpha* support to better manage local storage, see: > https://kubernetes.io/docs/concepts/storage/volumes/#local and the blog post: > http://blog.kubernetes.io/2017/06/kubernetes-1.7-security-hardening-stateful-application-extensibility-updates.html > > In any case, using an external volume, by the cloud provider, is not an > option? > Or do you really need the node SSD? If you don't, then it's really more > easier :)
The deployment is on a local node in our datacenter. For beginning we will have two nodes (physical computers). Local storage seems what I need but where to get an example how to use it? -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.