This little script is used to resize and repartition disks in GKE.
- gcloud
Configure gcloud if you haven't yet. You also need to define a zone inside your config.
./dke-disk-resizer <diskName> <newDiskSizeInGb>
Example:
./dke-disk-resizer my-disk 500
You can also use it directly without saving:
curl -s -L http://bit.ly/2oTgiwP | bash /dev/stdin <diskName> <diskSize>