Closed kvaps closed 1 month ago
phase1:
if .spec.storage.volumeClaimTemplate.spec.resources.requestes.storage updated:
storage: volumeClaimTemplate: metadata: {} spec: accessModes: - ReadWriteOnce resources: requests: storage: 20Gi
then delete statefulset with --cascade=orphan and create a new one
--cascade=orphan
phase2:
Loop over all PVCs
if storageClass has allowVolumeExpansion: true
allowVolumeExpansion: true
then patch PVC object to higher size
spec: resources: requests: storage: 20Gi
phase1:
if .spec.storage.volumeClaimTemplate.spec.resources.requestes.storage updated:
then delete statefulset with
--cascade=orphan
and create a new onephase2:
Loop over all PVCs
if storageClass has
allowVolumeExpansion: true
then patch PVC object to higher size