tariq jawed:
Hello folks,
Is anyone help me to extend PVC size from 100GB TO 200GB in stateful set deployment without any data loss
tariq jawed:
Hello folks,
Is anyone help me to extend PVC size from 100GB TO 200GB in stateful set deployment without any data loss
Pradeep:
I think you can just change it by k edit
. Please correct me if this wrong or we have to do something else
k edit pvc mypvc-to-increase-size -n pvc-namespace
Mohamed Ayman:
You can try with kubectl edit pvc pvc-name --record
but only dynamically provisioned PVC can be resized and the storageclass that provisions the PVC must support resize.
Regarding the resize of PVC which is associated with PV, you will need to delete the PVC then resize It and create It again.
OR use kubectl patch
Check this:
https://www.runlevl4.com/kubernetes/patching-kubernetes-resources#more-476
Pradeep:
Thank you:+1:
Mohamed Ayman:
You’re welcome