Skip to content

Instantly share code, notes, and snippets.

@shawon100
Created March 13, 2021 18:43
Show Gist options
  • Select an option

  • Save shawon100/febc69fef7be225242fca2e797df01fb to your computer and use it in GitHub Desktop.

Select an option

Save shawon100/febc69fef7be225242fca2e797df01fb to your computer and use it in GitHub Desktop.
#/bin/bash
read -p "Enter Pod Name: " pod
kubectl get po --all-namespaces | grep $pod | awk '{print $2 " -n " $1}' | xargs kubectl delete pod;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment