# Elasticsearch not forming a cluster in kubernetes

**URL:** <https://discuss.elastic.co/t/elasticsearch-not-forming-a-cluster-in-kubernetes/311463>\
**Category:** Elasticsearch\
**Created:** [August 4, 2022, 10:39pm UTC](https://discuss.elastic.co/t/elasticsearch-not-forming-a-cluster-in-kubernetes/311463 "2022-08-04T22:39:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![willsc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/willsc/32/109430_2.png) [@willsc](https://discuss.elastic.co/u/willsc)\
**Post date:** [August 4, 2022, 10:39pm UTC](https://discuss.elastic.co/t/elasticsearch-not-forming-a-cluster-in-kubernetes/311463/1 "2022-08-04T22:39:28Z")

</div>

Can anyone assist with trying to work out why an es cluster doesnt discover it nodes in kubernetes.

Currently deploying 7.17.4 in an rke2 cluster, that claims to have no network policy.

Elastic is being deployed as a statefulset, and via the official helm chart. Version 7.17.4.

The pods come up however the cluster isn't formed, also noticed I can't put the logs into debug, the settings are just ignored.

Lastly, the nodes of the elastic appear not talk to each other and so I can't a status of the cluster whereby it shows me the number of nodes I have?

The curl on one of the nodes /pods shows shows that it can resolve nodes

The question is how much more debug can I configure to establish what going on..

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [August 6, 2022, 8:29am UTC](https://discuss.elastic.co/t/elasticsearch-not-forming-a-cluster-in-kubernetes/311463/2 "2022-08-06T08:29:53Z")

</div>

Closing this as a duplicate of [Elasticsearch discovery issues kubernetes](https://discuss.elastic.co/t/elasticsearch-discovery-issues-kubernetes/311465).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 7, 2022, 11:07pm UTC](https://discuss.elastic.co/t/elasticsearch-not-forming-a-cluster-in-kubernetes/311463/3 "2022-08-07T23:07:07Z")

</div>


