pires / kubernetes-elasticsearch-cluster

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

Index templates lost after updating/recreating pods #210

Open skokovic opened 6 years ago

skokovic commented 6 years ago

Hi Paulo! First of all, I want to say thank you for this amazing project.

I'm at the end of building a production grade ES cluster using pretty much all the components you put out here. After updating all the pods with a plugin (recreating every pod), the index templates seem to be deleted. Those templates are stored in ES through the API using a PUT request. Initially, I thought all data is stored only in the data nodes (pods with data role) but it seems like master nodes also need PV to store that kind of data.

Referencing this discussion: https://discuss.elastic.co/t/index-template-lost-after-recreate-es-cluster-in-kubernetes-environment/83791

Does it make sense to deploy master pods as StatefulSet as well?

pires commented 6 years ago

Why not? Open to review a PR ;)

skokovic commented 6 years ago

Hehe great! There it is, #211 :)