Skip to content

Instantly share code, notes, and snippets.

@qudongfang
Last active April 29, 2024 14:58
Show Gist options
  • Save qudongfang/caf14a5fddef540edc33b79fbc8db40b to your computer and use it in GitHub Desktop.
Save qudongfang/caf14a5fddef540edc33b79fbc8db40b to your computer and use it in GitHub Desktop.
for c in $(kubectx | grep -v gov | grep -v dev); do
echo $c;
kubectx $c
kubectl delete deployments istiod -n istio-system
kubectl delete hpa istiod -n istio-system
kubectl delete pdb istiod -n istio-system
kubectl delete svc istiod -n istio-system --wait=false
kubectl delete cm -n istio-system istio
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment