Skip to content

Instantly share code, notes, and snippets.

@noeljackson
Created January 28, 2020 19:36
Show Gist options
  • Save noeljackson/ecf0a380e446ec76b6ac8ff850de48f2 to your computer and use it in GitHub Desktop.
Save noeljackson/ecf0a380e446ec76b6ac8ff850de48f2 to your computer and use it in GitHub Desktop.
kubectl edit pvc <name> for each PVC in the StatefulSet, to increase its capacity.
kubectl delete sts --cascade=false <name> to delete the StatefulSet and leave its pods.
kubectl apply -f <name> to recreate the StatefulSet.
kubectl rollout restart sts <name> to restart the pods, one at a time. During restart, the pod's PVC will be resized.
kubectl get pod -w
kubectl get pvc -w
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment