kubectl get evicted and failed pod names only
Posted on October 3, 2019
To get the evicted / failed pod names only run the following command:
$ kubectl get pods --field-selector=status.phase=Failed -o custom-columns=name:metadata.name
To get the evicted / failed pod names only run the following command:
$ kubectl get pods --field-selector=status.phase=Failed -o custom-columns=name:metadata.name