How to expand the persistentvolumeclaim and record the changes?

Mohamed Sabe:
how to expand the persistentvolumeclaim and record the changes?

1 Like

AB:
First i will create a yaml file of PV. Edit. Then delete the existing one and recreate with --record.

Nada Nour:
kubectl edit pvc <name> --record
you can also use the kubectl patch --record command

1 Like

sharan:
@Mohamed Sabe k patch pvc delayed-pvc -p ‘{“spec”:{“resources”:{“requests”:{“storage”:“275Mi”}}}}’

kubectl patch pvc myclaim -p ‘{“spec”:{“resources”:{“requests”:{“storage”:“10Gi”}}}}’ --record=true

Error: Error from server (BadRequest): json: cannot unmarshal string into Go value of type map[string]interface {}

Any idea pls

Thkx