You need to resize a PVC. How?
BeginnerScenarioConfiguration, Secrets and storage
Answer
Situation read → A database volume is 90% full.
What I'd do →
- Verify the StorageClass has
allowVolumeExpansion: true kubectl patch pvc data -p '{"spec":{"resources":{"requests":{"storage":"200Gi"}}}}'- Watch
kubectl get pvcand the conditionFileSystemResizePending - Online expansion works for most CSI drivers without restarting the pod
- Remember you cannot shrink a PVC
Why → The CSI driver expands the backing volume and the kubelet grows the filesystem.
Interview tip → Mention EBS limit: one modification per volume every 6 hours.
More on Configuration, Secrets and storage
How do you inject configuration into pods and what are the options?BeginnerA ConfigMap was updated but the pod still shows old values. Why?IntermediateHow do you store a database password safely in Kubernetes?BeginnerHow do you manage secrets in GitOps without committing them in plain text?IntermediateA pod fails with `CreateContainerConfigError` and a missing key. What happened?BeginnerWhat is the difference between emptyDir, hostPath, PV/PVC and when do you use each?Beginner