# How to assign nodeSelector to Kibana

**URL:** <https://discuss.elastic.co/t/how-to-assign-nodeselector-to-kibana/210636>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [December 5, 2019, 7:49am UTC](https://discuss.elastic.co/t/how-to-assign-nodeselector-to-kibana/210636 "2019-12-05T07:49:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LoadingZhang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/loadingzhang/32/22391_2.png) [@LoadingZhang](https://discuss.elastic.co/u/LoadingZhang)\
**Post date:** [December 5, 2019, 7:49am UTC](https://discuss.elastic.co/t/how-to-assign-nodeselector-to-kibana/210636/1 "2019-12-05T07:49:26Z")

</div>

I try to add

```
spec:
  version: 7.5.0
  count: 1
  nodeSelector:
    appType: stateless

```

but it didn't work.

---

<div class="post-metadata">

**Author:** ![pebrc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pebrc/32/101790_2.png) [@pebrc](https://discuss.elastic.co/u/pebrc)\
**Post date:** [December 5, 2019, 8:06am UTC](https://discuss.elastic.co/t/how-to-assign-nodeselector-to-kibana/210636/2 "2019-12-05T08:06:52Z")

</div>

You need to add the `nodeSelector` to the pod template. We have an example in our documentation here: [https://www.elastic.co/guide/en/cloud-on-k8s/master/k8s-kibana.html#k8s-kibana-pod-configuration](https://www.elastic.co/guide/en/cloud-on-k8s/master/k8s-kibana.html#k8s-kibana-pod-configuration)

---

<div class="post-metadata">

**Author:** ![LoadingZhang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/loadingzhang/32/22391_2.png) [@LoadingZhang](https://discuss.elastic.co/u/LoadingZhang)\
**Post date:** [December 5, 2019, 8:55am UTC](https://discuss.elastic.co/t/how-to-assign-nodeselector-to-kibana/210636/3 "2019-12-05T08:55:43Z")

</div>

Thanks, I didn't read the documentation carefully enough, my bad.

---

<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:** [November 4, 2022, 7:36am UTC](https://discuss.elastic.co/t/how-to-assign-nodeselector-to-kibana/210636/4 "2022-11-04T07:36:09Z")

</div>


