The ttlSecondsAfterFinished field tells Kubernetes how long to retain a finished Job and its pods before deleting them automatically. Without it, Job objects require manual deletion. section 18.1.1
A ten-second retention window
A Job runs one pod that completes successfully after 20 seconds. With ttlSecondsAfterFinished set to 10, Kubernetes deletes the Job and its pod 10 seconds after completion. section 18.1.1
The cleanup applies whether the Job succeeds or fails. Set the retention period long enough to inspect logs from failed pods; otherwise deletion can remove evidence needed for diagnosis. section 18.1.1
