how can i resize a pvc when my backend storage provider is "vsphere"?

8/18/2021

I created a pvc which uses vsphere as backend storage privider:

kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: hello-world-logs
  namespace: mbe
  labels:
    app: hello-world
spec:
  storageClassName: vsphere
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 1Gi

But when i am trying to resize the pvc in question to 2Gi, i got the following message:

Ignoring the PVC: didn't find a plugin capable of expanding the volume; waiting for an external controller to process this PVC

PS: I added allowVolumeExpansion: true to my storage class object. my k8s version : 1.18

What should i do to make it working ?

Any help would be really appriciated!

Thank you.

-- Mohamed
kubernetes
kubernetes-pvc
storage-class-specifier
vcenter
vsphere

0 Answers