Resize a gkePersistentDisk pod volume after gcloud compute disks resize

吃可爱长大的小学妹 提交于 2019-12-06 04:03:06

问题


Volumes created through GKE can easily be resized using gcloud compute disks resize [volume name from kubectl get pv]. The pod will keep running.

However a df in the pod will still report the same size. More importantly kubectl describe pv will still report the original "capacity". Is there a way to grow the pod's actual storage space on the volume?

Official support may be in the roadmap, according to https://github.com/kubernetes/kubernetes/issues/24255#issuecomment-210227126, but where is that discussion taking place?


回答1:


Usually containers in pods are designed to be ephemeral. If this is the design of your deployment then kill the pod and once the pod restarts it should reattach to the gcePersistentDisk with the correct size.



来源:https://stackoverflow.com/questions/39786921/resize-a-gkepersistentdisk-pod-volume-after-gcloud-compute-disks-resize

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!