Kubernetes CronJob Generator
Generate a Kubernetes CronJob with a schedule, time zone, concurrency policy, retries, a time limit, history limits and automatic cleanup of finished jobs.
Free · No sign-up · Your inputs stay in your browser
Input
Generate a Kubernetes CronJob
Output
cronjob.yaml
704 characters
Forbid stops a slow job from piling up copies of itself. startingDeadlineSeconds lets a run that was missed during a controller restart still start within five minutes; without it, more than 100 missed schedules stop the CronJob altogether. Trigger one by hand with kubectl create job --from=cronjob/name test-run.
Runs in this browser. Nothing you paste is sent to a server.
About this tool
Method, assumptions, practical next steps, and limits.
Settings that prevent incidents
concurrencyPolicy: Forbid skips a run while the last one is still going, so a slow job cannot pile up copies of itself. activeDeadlineSeconds stops a hung job. Without startingDeadlineSeconds, a CronJob that misses more than 100 schedules (during a long controller outage, for example) stops scheduling and logs an error. The CronJob documentation covers each field.
Time zones
The timeZone field is stable since Kubernetes 1.27. Without it, schedules run in the kube-controller-manager's zone, which is usually UTC.