Resize a gkePersistentDisk pod volume after gcloud

2019-04-09 02:49发布

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条回答
乱世女痞
2楼-- · 2019-04-09 03:36

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.

查看更多
登录 后发表回答