Elasticsearch cluster deployment using Kubernetes issue due to DNS Caching

4/25/2019

We are trying to deploy elasticsearch cluster deployment using kubernetes.On individual pods elasticsearch is running but not forming cluster.When we trouble shoot came to know that individual pods able to communicate using ipaddresses but not hostnames.We deployed using statefulsets and discovery service which uses hostnames.We are suspecting it is due to DNS caching.

We have tried the procedure as mentioned in the following link.But this procedure we could not able implement.

https://medium.com/@manis.eren/elasticsearch-on-kubernetes-master-connection-problem-because-of-jvm-dns-caching-27db53dea1e4


This may be due to Elasticsearch runs with a security manager as mentioned in the following link.But how to implement in kuberentes please let us know.

https://www.elastic.co/guide/en/elasticsearch/reference/6.7/networkaddress-cache-ttl.html

-- B Vivek
elasticsearch
kubernetes

0 Answers