Delete Erroneuos Kubernetes Pods
Get the list of erroneuos pods:
$ kubectl get po -n NAMESPACE | grep Error
Delete all of them:
$ kubectl get po -n NAMESPACE | grep Error | cut -d' ' -f1 | xargs kubectl delete po -n NAMESPACE
Get the list of erroneuos pods:
$ kubectl get po -n NAMESPACE | grep Error
Delete all of them:
$ kubectl get po -n NAMESPACE | grep Error | cut -d' ' -f1 | xargs kubectl delete po -n NAMESPACE