# Elastic search as statefulset in kubernetes cluster

**URL:** https://discuss.elastic.co/t/elastic-search-as-statefulset-in-kubernetes-cluster/317882
**Category:** Elasticsearch
**Created:** [November 1, 2022, 10:33am UTC](https://discuss.elastic.co/t/elastic-search-as-statefulset-in-kubernetes-cluster/317882 "2022-11-01T10:33:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![gsingh20](https://avatars.discourse-cdn.com/v4/letter/g/eb8c5e/32.png) [@gsingh20](https://discuss.elastic.co/u/gsingh20)
#### Post date: [November 1, 2022, 10:33am UTC](https://discuss.elastic.co/t/elastic-search-as-statefulset-in-kubernetes-cluster/317882/1 "2022-11-01T10:33:53Z")

</div>

how can we sync the data between 2 persistent volume when Elasticsearch is deployed as statefulset in kubernetes cluster.  
when we are scaling up pods then new pv is created and data is not sync. How can we sync the data between 2 pvs. suppose pod 1 is having pv1 and pod 2 is having pv2. data present in pv1 is not available in pv2. when application is trying to fetch the data then it is showing no record present. Please help

---

<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 29, 2022, 10:34am UTC](https://discuss.elastic.co/t/elastic-search-as-statefulset-in-kubernetes-cluster/317882/2 "2022-11-29T10:34:09Z")

</div>

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