apache / solr-operator

Official Kubernetes operator for Apache Solr
https://solr.apache.org/operator
Apache License 2.0
242 stars 112 forks source link

Allow resizing (expanding) of persistent data PVCs #709

Open HoustonPutman opened 2 weeks ago

HoustonPutman commented 2 weeks ago

Unfortunately Kubernetes does not currently support resizing of PVCs that are managed by StatefulSets.

There are a few KEP and KEP PRs that will hopefully enable this in the future however: https://github.com/kubernetes/enhancements/issues/661, https://github.com/kubernetes/enhancements/issues/4650 And even when it is added, it will take a while for it to be available for users.

Luckily, starting in Kubernetes 1.24, PVCs themselves support expansion. Therefore all we need to do as the Solr Operator is to go and manually update the PVC resources, and then do a rolling restart of the Pods to ensure that they have an up-to-date view of the storage volume.