# ECK on NVMe - how to set up PV and PVC

**URL:** <https://discuss.elastic.co/t/eck-on-nvme-how-to-set-up-pv-and-pvc/266625>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [March 9, 2021, 1:38am UTC](https://discuss.elastic.co/t/eck-on-nvme-how-to-set-up-pv-and-pvc/266625 "2021-03-09T01:38:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbernard](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@dbernard](https://discuss.elastic.co/u/dbernard)\
**Post date:** [March 9, 2021, 1:38am UTC](https://discuss.elastic.co/t/eck-on-nvme-how-to-set-up-pv-and-pvc/266625/1 "2021-03-09T01:38:31Z")

</div>

I am a novice with K8S but experiences with Elasticsearch.

I want to run about 8 Elasticsearch pods per server and have each pod claim a NMVe volume.

There will be about 6 servers.

What is the best way to do this?

Do I specifically need to set up zoning to ensure replicas are distributed across servers?

---

<div class="post-metadata">

**Author:** ![sebgl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sebgl/32/48702_2.png) [@sebgl](https://discuss.elastic.co/u/sebgl)\
**Post date:** [March 15, 2021, 9:45am UTC](https://discuss.elastic.co/t/eck-on-nvme-how-to-set-up-pv-and-pvc/266625/2 "2021-03-15T09:45:50Z")

</div>

ECK sets up a default affinity rule so the Kubernetes scheduler avoids scheduling 2 Pods of the same Elasticsearch cluster: [Advanced Elasticsearch node scheduling | Elastic Cloud on Kubernetes [1.4] | Elastic](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-advanced-node-scheduling.html#k8s_a_single_elasticsearch_node_per_kubernetes_host_default).

You can tweak these rules yourself, and I also suggest setting up availability zone awareness: [Advanced Elasticsearch node scheduling | Elastic Cloud on Kubernetes [1.4] | Elastic](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-advanced-node-scheduling.html#k8s-availability-zone-awareness).

---

<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:** [April 12, 2021, 9:46am UTC](https://discuss.elastic.co/t/eck-on-nvme-how-to-set-up-pv-and-pvc/266625/3 "2021-04-12T09:46:05Z")

</div>

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