I changed the size of pvc.
According to the documents on the Internet, I went through the following steps. I first added the following command line to the storageclass file.
allowVolumeExpansion: true
After changing the size with the following command ,I removed the pod to be made again with pvc. But at the end of the steps, the amount of pvc does not change.
kind: PersistentVolumeClaim apiVersion: v1 metadata: name: pvc-fp spec: accessModes: - ReadWriteOnce volumeMode: Filesystem resources: requests: storage: 2Gi storageClassName: rook-ceph-blockp
The output of these commands should be resized in pvc. While not changing.
ExpandPersistentVolumes
feature and PersistentVolumeClaimResize
admission controller needs to be enabled explicitly.AWS-EBS, GCE-PD, Azure Disk, Azure File, Glusterfs, Cinder, Portworx, and Ceph RBD
You can find more information at https://kubernetes.io/blog/2018/07/12/resizing-persistent-volumes-using-kubernetes/