pires / kubernetes-elasticsearch-cluster

Elasticsearch cluster on top of Kubernetes made easy.
Apache License 2.0
1.51k stars 690 forks source link

Statefulset not working with resize of pvc #230

Open usherfu opened 5 years ago

usherfu commented 5 years ago

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!