4 ms·
> Manually edit the StatefulSet volume claim with the new storage size and add a dummy pod annotation to force a rolling update If the PVC size changes Kuberne
by aeyes 4y ago
> Manually edit the StatefulSet volume claim with the new storage size and add a dummy pod annotation to force a rolling update
If the PVC size changes Kubernetes automatically does an online resize of the filesystem: https://kubernetes.io/blog/2022/05/05/volume-expansion-ga/ https://kubernetes.io/blog/2022/05/05/volume-expansion-ga/
This has been possible for 2-3 years if you had the flag enabled.
- arianvanp 4y agoProblem is that you don't create PVCs yourself usually but the statefulset manages them based on a template.
- sweaver 4y agoHow consistent have the results been? I used this in the past with some flakiness...
- jeppesen-io 4y agoNot OP, but I've been doing it for a few years. Can't say I've ever seen an issue - with Prometheus Operator, which the article mentions, as few times as well
- uberduper 4y agoOnline resizing of pv has been possible for quite a while. The complaint from the author is that you can do this for any existing pv that was created by the sts pvc definition, but scaling up the sts will create a new pod and pvc using the original spec. Altering that spec in the sts manifest is unpleasant when it really shouldn't be.