Skip to content

Instantly share code, notes, and snippets.

@eggsy84
Last active April 29, 2017 08:09
Show Gist options
  • Save eggsy84/7905522f06b4fe8ada54e4e8c1b2a5dd to your computer and use it in GitHub Desktop.
Save eggsy84/7905522f06b4fe8ada54e4e8c1b2a5dd to your computer and use it in GitHub Desktop.
Kubernetes: Delete all error status pods
#!/bin/bash
kubectl delete pod $(kubectl get pods --show-all | grep Error | awk -F " " '{print $1}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment