Student question: how to edit the pvc?

Kiran Kumar R:
how to edit the pvc ?

Ashok Kumar:

kubectl get pvc <pvc_name> -o yaml > file_name.yaml

vi file_name.yaml

You can also use

kubectl edit pvc <pvc_name>

Mohamed Ayman:
Do you want to resize It?

Kiran Kumar R:
yes i want to resize it . But kubectl edit pvc pvcname is not working .

Kiran Kumar R:
cc @Tej_Singh_Rana

Tej_Singh_Rana:
You can use patch command.
https://www.runlevl4.com/kubernetes/patching-kubernetes-resources