>_ OpsForge

Cron to Kubernetes CronJob Converter

Generate Kubernetes batch/v1 CronJob YAML manifests from any 5-field cron expression with UTC & local execution previews.

Examples:
100% Client-Side · Zero Network Requests
Input · Cron Expression
Output · Kubernetes CronJob
Saved you from writing YAML by hand?Buy me a coffee ($3)

Side-by-Side Syntax Cheat Sheet: Cron vs. Kubernetes CronJob

Quick reference for the most common directives translated by OpsForge.

Concept Cron Kubernetes CronJob Notes
Every 15 Minutes */15 * * * * OnCalendar=*-*-* *:*/15:00 Paired with Persistent=true for missed runs
Daily at 02:00 0 2 * * * OnCalendar=*-*-* 02:00:00 Runs in system timezone unless UTC specified
Weekdays 08:30 30 8 * * 1-5 OnCalendar=Mon..Fri *-*-* 08:30:00 Weekday ranges use double-dot (..)

Common Pitfalls & Best Practices

  • Set `concurrencyPolicy: Forbid` on backup or migration jobs so overlapping runs cannot corrupt state.
  • Kubernetes CronJobs evaluate schedules in the kube-controller-manager timezone (usually UTC) unless `spec.timeZone` is set.

Frequently Asked Questions

Are my Cron configs or secrets uploaded to a server? +

No. OpsForge executes 100% locally in your browser using client-side TypeScript parsers. Zero configuration text, API keys, or environment variables ever leave your device.

How does OpsForge handle Cron directives that do not exist in Kubernetes CronJob? +

Any flag or directive without a 1:1 equivalent in Kubernetes CronJob is flagged in the Migration Notes panel below the editor and preserved as an inline comment in the generated output so nothing is silently dropped.

Can I use this Cron to Kubernetes CronJob converter offline? +

Yes. Once the page loads, every parser and serializer runs completely offline with zero network requests.

Related DevOps Converters