# While helm upgrade getting error elasticsearch 7.17.5

**URL:** <https://discuss.elastic.co/t/while-helm-upgrade-getting-error-elasticsearch-7-17-5/333417>\
**Category:** Elasticsearch\
**Created:** [May 15, 2023, 7:57am UTC](https://discuss.elastic.co/t/while-helm-upgrade-getting-error-elasticsearch-7-17-5/333417 "2023-05-15T07:57:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shivaji\_laxmi](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@shivaji\_laxmi](https://discuss.elastic.co/u/shivaji_laxmi)\
**Post date:** [May 15, 2023, 7:57am UTC](https://discuss.elastic.co/t/while-helm-upgrade-getting-error-elasticsearch-7-17-5/333417/1 "2023-05-15T07:57:56Z")

</div>

I upgraded the kubernetes cluster from 1.24 to 1.25.

When I try to add additional node in elasticsearch cluster. I am getting following error.

$ helm upgrade esdata . -f esdata\_prod.yml -n dea-elk --debug --dry-run  
upgrade.go:142: [debug] preparing upgrade for esdata  
Error: UPGRADE FAILED: YAML parse error on elasticsearch/templates/statefulset.yaml: error converting YAML to JSON: yaml: line 33: did not find expected key  
helm.go:84: [debug] error converting YAML to JSON: yaml: line 33: did not find expected key  
YAML parse error on elasticsearch/templates/statefulset.yaml  
helm.sh/helm/v3/pkg/releaseutil.(\*manifestFile).sort  
helm.sh/helm/v3/pkg/releaseutil/manifest\_sorter.go:146  
helm.sh/helm/v3/pkg/releaseutil.SortManifests  
helm.sh/helm/v3/pkg/releaseutil/manifest\_sorter.go:106  
helm.sh/helm/v3/pkg/action.(\*Configuration).renderResources  
helm.sh/helm/v3/pkg/action/action.go:165  
helm.sh/helm/v3/pkg/action.(\*Upgrade).prepareUpgrade  
helm.sh/helm/v3/pkg/action/upgrade.go:234  
helm.sh/helm/v3/pkg/action.(\*Upgrade).RunWithContext  
helm.sh/helm/v3/pkg/action/upgrade.go:143  
main.newUpgradeCmd.func2  
helm.sh/helm/v3/cmd/helm/upgrade.go:197

UPGRADE FAILED

---

<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:** [June 12, 2023, 7:58am UTC](https://discuss.elastic.co/t/while-helm-upgrade-getting-error-elasticsearch-7-17-5/333417/2 "2023-06-12T07:58:54Z")

</div>

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