Skip to content
This repository was archived by the owner on Nov 7, 2018. It is now read-only.
This repository was archived by the owner on Nov 7, 2018. It is now read-only.

Statefulset not working with resize of pvc #230

Open
@usherfu

Description

@usherfu

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions