Skip to content

Instantly share code, notes, and snippets.

@amrutprabhu
Created April 2, 2020 11:55
Show Gist options
  • Select an option

  • Save amrutprabhu/71142a1a62d117765d2ca969d6f5cd09 to your computer and use it in GitHub Desktop.

Select an option

Save amrutprabhu/71142a1a62d117765d2ca969d6f5cd09 to your computer and use it in GitHub Desktop.
Delete multiple kubernetes pod based on pattern
kubectl -n amrut get pods | awk '{print $1}' | grep 'podname-' | xargs kubectl -n amrut delete pod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment