PVC resizing fails when using kubernetes.io/vsphere-volume as the provisioner in Enterprise PKS
search cancel

PVC resizing fails when using kubernetes.io/vsphere-volume as the provisioner in Enterprise PKS

book

Article ID: 303367

calendar_today

Updated On:

Products

VMware Cloud PKS

Issue/Introduction

Symptoms:
  • You see a message similar to the following when resizing a PVC on a vSphere provisioned volume type:
======
error: persistentvolumeclaims "pvc-name" could not be patched: persistentvolumeclaims "pvc-name" is forbidden: only dynamically provisioned pvc can be resized and the storageclass that provisions the pvc must support resize
You can run kubectl replace -f /tmp/kubectl-edit-0i12b.yaml to try this update again.

======


Environment

VMware PKS 1.x

Cause

PVC resizing is not  yet  supported in the VMware vSphere VMFS file system.

Resolution

PVC resizing on VMFS file system is not supported currently. There is a feature request submitted for this which will be reviewed and considered for future development.

More information on the inclusion of this functionality can be found at https://github.com/vmware/kubernetes/issues/168.


Additional Information

Expanding Persistent Volumes Claims