Referral Link: https://m.do.co/c/001ed2c46f75​
Reason:
I don't want to have lots of small pieces of Digital Ocean Block Storage volumes
Enables ReadWriteMany
for sharing files across pods
Links:
​nfs-provisioner​
Links:
There will be downtime
Edit the Persistent Volume Claim to
kubectl edit pvc data-nfs-server-nfs-server-provisioner-0
Assuming we are changing from 5Gi
to 10Gi
Change the keys for:
spec.resources.request.storage
status.capacity.storage
spec:resources:requests:- storage: 5Gi+ storage: 10Gistatus:capacity:- storage: 5Gi+ storage: 10Gi
Delete the StatefulSet:
kubectl delete sts --cascade=false nfs-server-nfs-server-provisioner
Change your helm custom values, I store mine in a custom.yaml
file.
persistence:- size: 5Gi+ size: 10Gi
Apply changes in helm
helm upgrade nfs-server nfs-server-provisioner/ -f nfs-server-provisioner/custom.yaml