Created
October 8, 2020 14:15
-
-
Save chijikpijik/36fdeec7690de857a6c898673c013bf2 to your computer and use it in GitHub Desktop.
delete pods by name pattern
This file contains 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
qubectl get pods --no-headers=true | awk '/openstf/{print $1}' | xargs qubectl delete pod -- delete pods by pattern |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
qubectl get deployment -n android --no-headers=true | awk '/openstf/{print $1}' | xargs qubectl delete deployment -n android