0. Collect these info
- What's your PVC which has space issue ?
- What's the StorageClassName of that PVC ?
1. Make sure StorageClassName has the following prop :
allowVolumeExpansion: true
https://www.jeffgeerling.com/blog/2019/expanding-k8s-pvs-eks-on-aws
spec.resources.requests.storage
2. Edit PVC spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 30Gi
3. Restart app
# if it's statefulset
k -n namespace rollout restart statefulset/prod-db
# if it's deployment
k -n namespace rollout restart ddeployment/prod-db