# Modifying StatefulSet updateStrategy in Elasticsearch k8s Operator from OnDelete to RollingUpdate

**URL:** <https://discuss.elastic.co/t/modifying-statefulset-updatestrategy-in-elasticsearch-k8s-operator-from-ondelete-to-rollingupdate/376397>\
**Category:** Elasticsearch\
**Created:** [March 26, 2025, 2:49am UTC](https://discuss.elastic.co/t/modifying-statefulset-updatestrategy-in-elasticsearch-k8s-operator-from-ondelete-to-rollingupdate/376397 "2025-03-26T02:49:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marian\_MIRON](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marian_miron/32/141214_2.png) [@Marian\_MIRON](https://discuss.elastic.co/u/Marian_MIRON)\
**Post date:** [March 26, 2025, 2:49am UTC](https://discuss.elastic.co/t/modifying-statefulset-updatestrategy-in-elasticsearch-k8s-operator-from-ondelete-to-rollingupdate/376397/1 "2025-03-26T02:49:06Z")

</div>

Using the Elasticsearch k8s Operator, I need help changing the updateStrategy in a StatefulSet from `type: OnDelete` to `type: RollingUpdate`. I'm working with Helm templates to manage the CRDs. What's the best way to accomplish this?
