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?
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.