pires/kubernetes-elasticsearch-cluster

Statefulset not working with resize of pvc

usherfu opened this issue · 0 comments

I tried to deploy the elasticsearch with statefulset, and want to test out the new feature "Resizing Persistent Volume" in k8s v1.11 .

However, when trying to increase the "statefulset.spec.volumeClaimTemplates.spec.resources.requests.storage" field, received the following error:

"The StatefulSet "es-data" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', and 'updateStrategy' are forbidden."

I guess it is a restriction of Statefulset, but want to ask if anyone has found way to use the new feature? Knowing upfront the needed storage size is not practical.

Thanks!