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.
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