#nas为例
kubectl patch storageclass nas -p '{"allowVolumeExpansion": true}'
kubectl -n sre get pvc
kubectl patch pvc -n sre mongo-sre -p '{"spec": {"resources": {"requests": {"storage": "1500Gi"}}}'
#显示的大小仍然是初始大小,但查看 PV 大小会显示已经扩容到预期的大小
kubectl get pv | grep ${pvc_name}

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code