Open drummerwolli opened 4 years ago
Unfortunately you can't change the size of a PVC on a statefulset in Kubernetes but our validation doesn't prevent changing it on the EDS.
We could maybe work around this by migrating transparently to a new statefulset, but this is a bigger change, so not something that can easily be fixed.
ah, ok. then maybe as a first "quick fix" would be to validate this similar to K8s (not to allow it), and then later, we can build the "migrate to new statefulset" feature.
@mikkeloscar is it possible that this actually changed? i just managed to change a PVC size with kubectl edit pvc
.
@drummerwolli You can change it on the PVC yes, but the problem is changing it on the StatefulSet which is (still) not allowed.
do you know if this is planned at some point? maybe we can link the upstream issue if it exists?
Here's an issue: https://github.com/kubernetes/kubernetes/issues/68737 seems like it's not changing soon. But there are suggestions of removing the sts without deleting the pods (kubectl delete sts --cascade=false
). This could potentially be implemented as a hack in es-operator
Expected Behavior
If I change the size of an existing PVC inside of a
ElasticsearchDataSet
, it should get propagated to the underlyingStatefulSet
's pod volumesActual Behavior
The
StatefulSet
does not change its properties and therefore nothing changes.Steps to Reproduce the Problem
ElasticsearchDataSet
with a PersistentVolumeClaimSpecifications