<p>I changed the size of pvc.</p>
<p>According to the documents on the Internet, I went through the following steps.
I first added the following command line to the <code>storageclass</code> file.</p>
<pre><code>allowVolumeExpansion: true
</code></pre>
<p>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.</p>
<pre><code>kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: pvc-fp
spec:
  accessModes:
    - ReadWriteOnce
  volumeMode: Filesystem
  resources:
    requests:
      storage: 2Gi
  storageClassName: rook-ceph-blockp
</code></pre>
<p>The output of these commands should be resized in pvc.
While not changing.</p>

parisa
<ol>
<li>What is the version of your Kubernetes cluster ? PVC resize feature is by default enabled only for k8s version 1.11 and above. For prior versions of k8s, <code>ExpandPersistentVolumes</code> feature and <code>PersistentVolumeClaimResize</code> admission controller needs to be enabled explicitly.</li>
<li>What is backend storage provider ? Does it supports volume resize with PVC ?
As of now bellow providers support PVC resize:</li>
</ol>

<pre><code>AWS-EBS, GCE-PD, Azure Disk, Azure File, Glusterfs, Cinder, Portworx, and Ceph RBD
</code></pre>

<p>You can find more information at <a href="https://kubernetes.io/blog/2018/07/12/resizing-persistent-volumes-using-kubernetes/" rel="nofollow noreferrer">https://kubernetes.io/blog/2018/07/12/resizing-persistent-volumes-using-kubernetes/</a></p>
