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
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.
Most helpful comment
You have to deploy a new node group with the size you want, drain the old nodes, and then delete them.