Created
September 25, 2022 02:55
-
-
Save jorge07/ed51a034fa9189f08c8cc8c5120d0448 to your computer and use it in GitHub Desktop.
Kuberenetes delete all failed jobs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```sh | |
$ kubectl delete job $(kubectl get job -o=jsonpath='{.items[?(@.status.failed==1)].metadata.name}') | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment