Created
October 7, 2021 01:27
-
-
Save lysender/7a917808f8d2f8c02c96b785b96612bf to your computer and use it in GitHub Desktop.
Delete pods with Shutdown status
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
# Replace get with delete at the end | |
kubectl get pods -n jx-staging | grep -i shutdown | awk '{print $1}' | xargs -n1 kubectl get pod -n jx-staging |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment