Understanding how to configure a cron job to remove artifacts
Cron jobs can leave behind artifact resources such as jobs or pods. As a user it is important to configure history limits so that old jobs and their pods are properly cleaned. There are two fields within cron job’s spec responsible for that:
-
.spec.successfulJobsHistoryLimit. The number of successful finished jobs to retain (defaults to 3). -
.spec.failedJobsHistoryLimit. The number of failed finished jobs to retain (defaults to 1).
|
|
|