Priyanka:
What is the command to resize the persistent volume claim when kubectl edit didn’t work?
Pratik Patel:
kubectl edit
should definitely work unless you are not making any syntax/tab error and if that still doesn’t work, you can update using kubectl patch
Priyanka:
Thank you
1 Like
Priyanka:
Really got to know different approaches
Priyanka:
Can u share how to learn network policy from basics like ingress egress
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.
Mohamed Ayman:
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
from the link above.