# How does one setup a clustered elasticsearch?

**URL:** <https://discuss.elastic.co/t/how-does-one-setup-a-clustered-elasticsearch/190017>\
**Category:** Elasticsearch\
**Created:** [July 11, 2019, 1:06pm UTC](https://discuss.elastic.co/t/how-does-one-setup-a-clustered-elasticsearch/190017 "2019-07-11T13:06:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![maasid](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maasid/32/48327_2.png) [@maasid](https://discuss.elastic.co/u/maasid)\
**Post date:** [July 11, 2019, 1:19pm UTC](https://discuss.elastic.co/t/how-does-one-setup-a-clustered-elasticsearch/190017/2 "2019-07-11T13:19:07Z")

</div>

Solved! for anyone who comes accross this, you have to match you pod name with the name in the cluster.initial\_master\_nodes:

I did this by setting a static name in the NODE\_NAME in my deployment file and then in the config, node.name: ${NODE\_NAME}

---

_[View the full topic](https://discuss.elastic.co/t/how-does-one-setup-a-clustered-elasticsearch/190017)._
