Interview Prep/Kubernetes/Reliability & Rollouts

How do you make Jobs and CronJobs reliable?

IntermediateProductionReliability & Rollouts
Answer

Set backoffLimit, activeDeadlineSeconds, ttlSecondsAfterFinished, concurrencyPolicy: Forbid for non-reentrant tasks, startingDeadlineSeconds, and successfulJobsHistoryLimit/failedJobsHistoryLimit. Make jobs idempotent, emit metrics, and alert when a CronJob has not succeeded within its expected window (kube_cronjob_status_last_successful_time).

All Kubernetes questions

More on Reliability & Rollouts