bland-translator-58922
10/18/2022, 11:24 AMerrored
or completed
status from past jobs. The last 3 jobs from the crons will be saved along with the failed ones. Is there a way to filter these out on the cluster overview to actually see how many running pods there are in the cluster?ancient-raincoat-46356
10/18/2022, 3:40 PMkubectl delete pod $(kubectl get pods | egrep 'Completed|Error|ContainerStatusUnknown' | awk '{print $1}')
You can edit the egrep
to remove only what you want and you can add --all-namespaces
to affect pods outside of your current namespace context