🪦 DISCONTINUED Further Lokomotive development has been discontinued. Lokomotive is a 100% open-source, easy to use and secure Kubernetes distribution from the volks at Kinvolk
But when I try to resize the PVC created by the default storage class I get the following error:
$ kubectl edit pvc data-prometheus-prometheus-operator-kube-p-prometheus-0
error: persistentvolumeclaims "data-prometheus-prometheus-operator-kube-p-prometheus-0"
could not be patched: persistentvolumeclaims "data-prometheus-prometheus-operator-kube-p-prometheus-0"
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-mlu5z.yaml` to try this update again.
I changed the size from 100Gi to 200Gi and I saw above error. So it turns out that the storage class is deployed without the field: allowVolumeExpansion: true despite the lokocfg field enable_volume_resizing in aws-ebs-csi-driver.
AWS EBS CSI Driver volume expansion does not work
I have deployed the CSI driver with the following configuration:
PVC is created by the default storage class
ebs-sc
:But when I try to resize the PVC created by the default storage class I get the following error:
I changed the size from 100Gi to 200Gi and I saw above error. So it turns out that the storage class is deployed without the field:
allowVolumeExpansion: true
despite the lokocfg fieldenable_volume_resizing
inaws-ebs-csi-driver
.