Error: No space left on device

No space left on device error will be seen during execution of console commands

Solution

Validate storage class has property ALLOWVOLUMEEXPANSION is set to true

kubectl describe sc <storage classname>

Increase the size of storage pvc without any downtime

kubectl get pvc -n <namespace>

Edit the storage pvc size

kubectl edit pvc <pvc name> -n <namespace>

Note

Please edit and increase the pvc size for all the storage pvcs listed from the above command

Delete the storage statefulset

kubectl -n <namespace> get statefulset

kubectl delete statefulset --cascade=orphan <statefulset name> -n namespace

Redeploy the chart to recreate storage statefulset

helm upgrade <existing release name> <chartname> -n <>namespace>

Storage stateful set will be created with the updated pvc size

kubectl -n <namespace> get pvc