Skip to content

Instantly share code, notes, and snippets.

@bashtoni
Created May 15, 2023 00:36
Show Gist options
  • Save bashtoni/e7754000ad26e4a440dfb3d0bd714d84 to your computer and use it in GitHub Desktop.
Save bashtoni/e7754000ad26e4a440dfb3d0bd714d84 to your computer and use it in GitHub Desktop.
Resizing EBS volumes in a Kubernetes cluster

Resizing EBS volumes in a Kubernetes cluster

  • Edit the gp2 storage class to add allowVolumeExpansion: true
  • Edit the persistent volume claim with the new amount of required storage
  • Re-create the pod using the persistent volume claim
  • The pv and pvc should now reflect the new amount of storage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment