Kubernetes Job
Jump to navigation
Jump to search
Internal
Overview
Clean up Finished Jobs Automatically
Jobs that have finished, either "Complete" or "Failed" can be automatically be deleted by using the TTL mechanism provided by the [TTL Controller ]. Set the .spec.ttlSecondsAfterFinished
field in the job manifest:
apiVersion: batch/v1
kind: Job
spec:
ttlSecondsAfterFinished: 100
...