List failed kubernetes jobs
If you have lots of cronjobs in kubernetes and you only want to list failed jobs. Run this:
$ k get job --field-selector="status.successful=0"
And if you want to clean up all failed jobs just run:
$ k delete job --field-selector="status.successful=0"
This will also clean up the pods that was created for the jobs.