Created
July 20, 2020 08:50
-
-
Save Tim-Schwalbe/63bc01043bc534e2af276ed703185534 to your computer and use it in GitHub Desktop.
Kubectl: Delete released persistent volumes (PV)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl get pv | grep Released | awk '$1 {print$1}' | while read vol; do kubectl delete pv/${vol}; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment