Check if StorageClass supports expansion
kubectl get sc
# Look for ALLOWVOLUMEEXPANSION = true
Check current PVC size
kubectl get pvc data-loki-write-0 -n logging -o jsonpath='{.spec.resources.requests.storage}'
Patch the PVC to new size
kubectl patch pvc data-loki-write-0 -n logging \
-p '{"spec":{"resources":{"requests":{"storage":"100Gi"}}}}'
Verify
kubectl get pvc data-loki-write-0 -n logging
# STATUS should stay "Bound", CAPACITY should update
Gotcha
- You can only increase size, never shrink
- Azure Disk CSI: online expansion works, no pod restart needed
- If PVC shows
FileSystemResizePendingcondition, restart the pod using it - Some older provisioners require the pod to be deleted so the volume can detach, resize, and reattach
allowVolumeExpansionmust betrueon the StorageClass before you try to patch
Ready to scale your cloud infrastructure?
Let's discuss how CloudCops can help you build secure, scalable, and modern DevOps workflows. Schedule a free discovery call today.
Related Snippets
Zalando Postgres Operator: Backup & Restore on Azure
Complete guide to setting up WAL-G backups with Azure Blob Storage for the Zalando Postgres Operator, including restore procedures and troubleshooting.
Feb 10, 2026
kubernetes
postgresql
azure
MSSQL Client in Kubernetes: Quick sqlcmd Reference
Spin up a temporary sqlcmd pod to connect, query, and debug Azure SQL or any MSSQL database from inside your cluster.
Jan 5, 2026
kubernetes
mssql
database
Kubernetes Useful Commands Cheat Sheet
Battle-tested kubectl commands for daily cluster operations — pod cleanup, version checks, network debugging, bulk patching, and more.
Feb 15, 2026
kubernetes
kubectl
bash