Skip to content

Instantly share code, notes, and snippets.

@besteban1989
Last active September 7, 2022 22:11
Show Gist options
  • Save besteban1989/5e40fdf202562db786701bb957ab992b to your computer and use it in GitHub Desktop.
Save besteban1989/5e40fdf202562db786701bb957ab992b to your computer and use it in GitHub Desktop.
Resize PVC in Kubernetes
# Update the PVC directly and run kubectl apply
# WARNING: DO NOT UPDATE THE PV, THE PVC WILL TAKE CARE OF THAT!!!
# INFO: THE CHANGE MAY TAKE 1 OR 2 MINUTES TO BE COMPLETED BY THE CLOUD PROVIDER. IN SOME CASES A RESTART OF POD THAT UTILIZES THE PVC WILL RELEASE LOCKS.
# Docs for GKE: https://cloud.google.com/kubernetes-engine/docs/how-to/persistent-volumes/volume-expansion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment