Below command can be used. Below command will list all the pods in all the namespaces which are in unhealthy status.
kubectl get pods -o wide --all-namespaces | grep -vE 'Running|Completed'
Above command will list all the pods which are in other status than the running or completed status
No comments:
Post a Comment