Skip to content

Instantly share code, notes, and snippets.

@lysender
Created October 7, 2021 01:27
Show Gist options
  • Save lysender/7a917808f8d2f8c02c96b785b96612bf to your computer and use it in GitHub Desktop.
Save lysender/7a917808f8d2f8c02c96b785b96612bf to your computer and use it in GitHub Desktop.
Delete pods with Shutdown status
# 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