To modify the size of the PVC locate the spec.resources.requests.storage field and change its value to the desired size in GiB. For example, if you want to increase the size from 20Gi to 30Gi, change spec.resources.requests.storage: 20Gi to spec.resources.requests.storage: 30Gi.
Command: kubectl get pvc -n vigneshs
Command: kubectl edit pvc artifactory-volume-jfrt-artifactory-0 -n vigneshs
Command: kubectl get pvc -n vigneshs
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE artifactory-volume-jfrt-artifactory-0 Bound pvc-f555ab44-f07b-41dd-a1dd-b39c6c8dce4e 20Gi RWO standard 23m
Command: kubectl edit pvc artifactory-volume-jfrt-artifactory-0 -n vigneshs
# Please edit the object below. Lines beginning with a '#' will be ignored, # and an empty file will abort the edit. If an error occurs while saving this file will be # reopened with the relevant failures. # apiVersion: v1 kind: PersistentVolumeClaim metadata: annotations: pv.kubernetes.io/bind-completed: "yes" pv.kubernetes.io/bound-by-controller: "yes" volume.beta.kubernetes.io/storage-provisioner: pd.csi.storage.gke.io volume.kubernetes.io/storage-provisioner: pd.csi.storage.gke.io volume.kubernetes.io/storage-resizer: pd.csi.storage.gke.io creationTimestamp: "2023-04-16T08:07:38Z" finalizers: - kubernetes.io/pvc-protection labels: app: artifactory release: jfrt role: artifactory name: artifactory-volume-jfrt-artifactory-0 namespace: vigneshs resourceVersion: "163260809" uid: f555ab44-f07b-41dd-a1dd-b39c6c8dce4e spec: accessModes: - ReadWriteOnce resources: requests: storage: 30Gi storageClassName: standard volumeMode: Filesystem volumeName: pvc-f555ab44-f07b-41dd-a1dd-b39c6c8dce4e status: accessModes: - ReadWriteOnce capacity: storage: 30Gi phase: Bound