Reputation: 2920
I have a statefulset having 2
replicas and I want to increase the storage in each of the pods from 300GB
to 3TB
. So I edited the statefulset to increase the storage.
But this doesn't get reflected directly. I plan to do a rollout restart using the command of type:
kubectl rollout restart statefulset my-statefulset
But I am not sure if this will create Pods with fresh volume or if there is an easy way to ensure that it transfers the old data of 300GB
to the volume of 3TB
.
I am using GKE.
Client Version: v1.16.1
Server Version: v1.14.10-gke.42
Upvotes: 1
Views: 225
Reputation: 1362
There is way expand volumes . Steps in brief
Reference Doc : here
Upvotes: 2