I am trying to extend logging service pvc but it is failing:
helm get values k10 --output yaml --namespace=kasten-io > k10_val.yaml && \ > helm upgrade k10 kasten/k10 --namespace=kasten-io -f k10_val.yaml \ > --set global.persistence.logging.size=40Gi \ > --set global.persistence.job.size=40Gi --version 4.5.9 Error: UPGRADE FAILED: cannot patch "logging-pv-claim" with kind PersistentVolumeClaim: persistentvolumeclaims "logging-pv-claim" is forbidden: only dynamically provisioned pvc can be resized and the storageclass that provisions the pvc must support resize
Looks like there are some issues regarding resize of a created PVC on k3s Local Path Provisioner, so after enabling "allowVolumeExpansion" the command should work as it did for you, but the real size will not show, according to the PR/docs since Local Path Provisioner doesn't take PVC size into consideration, there is no quota/enforcement for the volume size so it can have a bigger size than it showing on PVC being limited by the system disk size, but unfortunately looks like the PR did not address the PVC size status, it will still show the original amount.
Please take a look in the links bellow for further details related to this:
Thank you for contact Kasten by Veeam and using our community!
I would recommend to check the setup of your StorageClass, K8s allows PVC to be expanded only when the StorageClass has "allowExpansion" set to true according with K8s documentation:
Looks like there are some issues regarding resize of a created PVC on k3s Local Path Provisioner, so after enabling "allowVolumeExpansion" the command should work as it did for you, but the real size will not show, according to the PR/docs since Local Path Provisioner doesn't take PVC size into consideration, there is no quota/enforcement for the volume size so it can have a bigger size than it showing on PVC being limited by the system disk size, but unfortunately looks like the PR did not address the PVC size status, it will still show the original amount.
Please take a look in the links bellow for further details related to this: