pires / kubernetes-elasticsearch-cluster

Elasticsearch cluster on top of Kubernetes made easy.
Apache License 2.0
1.51k stars 690 forks source link

Data nodes StatefulSet storageclass ? #157

Open zs787 opened 6 years ago

zs787 commented 6 years ago

Hi,

I'm fairly new to using Kubernetes, but I have managed to get a full ELK stack running on a single node, using your solution steps and my docker files.

However, now I would like to keep my data persistent and use StatefulSet data pods, as if I understand this correctly if we lose the es-data pods I will lose my indices. So my question to you is what type of PV you used in your solution i.e. nfs, host-path, cinder...etc. and what provisioner for your storage class. Unfortunately, we are running our cluster on a dedicated hardware as a first step but I also have another multi-node cluster in Openstack.

Or is it possible to approach this using host-path using on a one node Kubernetes cluster deployment, with Statefulset for the data pods ?

Any details or clarification on how I can approach this would be very appreciated.

Thank you!

bfleming-ciena commented 6 years ago

Also curious what kind of storage class is used for production. NFS was suggested by some to be too slow.