Elastic search in kubernetes only on Linux node

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"

helm install --name elasticsearch elastic/elasticsearch --set nodeSelector="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?

I resolved with this:

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

need to add \ in front of .

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