# Elastic search in kubernetes only on Linux node

**URL:** <https://discuss.elastic.co/t/elastic-search-in-kubernetes-only-on-linux-node/188025>\
**Category:** Elasticsearch\
**Created:** [June 28, 2019, 10:27am UTC](https://discuss.elastic.co/t/elastic-search-in-kubernetes-only-on-linux-node/188025 "2019-06-28T10:27:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paulius\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paulius_k/32/49009_2.png) [@Paulius\_K](https://discuss.elastic.co/u/Paulius_K)\
**Post date:** [June 28, 2019, 10:27am UTC](https://discuss.elastic.co/t/elastic-search-in-kubernetes-only-on-linux-node/188025/1 "2019-06-28T10:27:56Z")

</div>

I'm trying to install elasticsearch on kubernetes using helm. I have cluster of linux and windows nodes and i can't find a way to run elasticsearch only on linux nodes, how to do it? To run on linux nodes only i need to add node selector.  
I tried commands:  
helm install --name elasticsearch elastic/elasticsearch --set nodeSelector="[beta.kubernetes.io/os"="linux](http://beta.kubernetes.io/os%22=%22linux)"

helm install --name elasticsearch elastic/elasticsearch --set nodeSelector="[beta.kubernetes.io/os=linux](http://beta.kubernetes.io/os=linux)"

But none of them gives result i want. Is there a way to do it?

And why there is no simple yaml file to install it without helm? Can someone provide one?

---

<div class="post-metadata">

**Author:** ![Paulius\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paulius_k/32/49009_2.png) [@Paulius\_K](https://discuss.elastic.co/u/Paulius_K)\
**Post date:** [June 28, 2019, 11:21am UTC](https://discuss.elastic.co/t/elastic-search-in-kubernetes-only-on-linux-node/188025/2 "2019-06-28T11:21:35Z")

</div>

I resolved with this:

helm install --name elasticsearch elastic/elasticsearch --set nodeSelector."beta\.kubernetes\.io/os"=linux

need to add \ in front of .

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 26, 2019, 11:22am UTC](https://discuss.elastic.co/t/elastic-search-in-kubernetes-only-on-linux-node/188025/3 "2019-07-26T11:22:49Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
