etcd-operator icon indicating copy to clipboard operation
etcd-operator copied to clipboard

Enable resize operation

Open kvaps opened this issue 1 year ago • 0 comments

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

phase2:

Loop over all PVCs

if storageClass has allowVolumeExpansion: true

then patch PVC object to higher size

spec:
  resources:
    requests:
      storage: 20Gi

kvaps avatar May 15 '24 10:05 kvaps