Helm-charts: How to resize ES storage volume?

Created on 10 Aug 2020  路  6Comments  路  Source: elastic/helm-charts

I know resizing volumes is possible, but is there a suggested method for resizing a volume for an ES cluster? Is that a feature that can be added to the chart?

Changing the volumeClaimTemplate storage size throws the error:

Error: UPGRADE FAILED: cannot patch "elasticsearch-master" with kind StatefulSet: StatefulSet.apps "elasticsearch-master" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', and 'updateStrategy' are forbidden

I did notice it was being discussed there, just not sure if its something that needs to be implemented in the ES helm chart. https://github.com/kubernetes/kubernetes/issues/68737

elasticsearch question triagstale

Most helpful comment

You have to deploy a new node group with the size you want, drain the old nodes, and then delete them.

All 6 comments

I have the same question

@jmlrt , do you know if it is possible?

You have to deploy a new node group with the size you want, drain the old nodes, and then delete them.

Hi,
Indeed the recommended way is to deploy a new chart release / node group in the same cluster with the good size, drain the nodes and delete the old chart release as mentionned by @krishopper.

Resizing volumes is potentially possible with K8S for some storage class but may not be possible in the case of StatefulSets with the limitations of immutable fields.

At least it hasn't been studied/tested internally.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This issue has been automatically closed because it has not had recent activity since being marked as stale.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

diversario picture diversario  路  7Comments

jgato picture jgato  路  7Comments

ichasco-heytrade picture ichasco-heytrade  路  7Comments

milijander88 picture milijander88  路  5Comments

kawat55 picture kawat55  路  3Comments