Expanding a Volume
In order to expand the PV from the “Filesystem VolumeMode Example” to, for example, 116 GB, the PVC definition needs to be "patched" accordingly:
kubectl patch pvc example -fs -pvc -p '{" spec ":{" resources ":{" requests ":{" storage ": "116Gi
" }}}}'
Verify that the resize took place, and run the following command:
kubectl describe pvc example -fs -pvc
Was this page helpful?