Tag: jobs

  • Kubernetes – Delete All Completed Jobs One-Liner

    Kubernetes – Delete All Completed Jobs One-Liner

    Sometimes you forget, or don’t want to add, successfulJobsHistoryLimit or event perhaps failedJobsHistoryLimit. Whatever the case, the end result looks something like this: You can of course go and kubectl delete all of them, but a much quicker solution is using this one-liner: Running the above one-line will list all the jobs in the default…