Launch Workspace

Kubernetes CronJob Generator

Build production-ready batch/v1 Kubernetes CronJob manifests with container specs, resource limits, and concurrency policies.

AWS EventBridge Rule (CloudFormation & Terraform)

Configure schedule and executable to generate copy-paste deployment code.

# Terraform AWS EventBridge Rule
resource "aws_cloudwatch_event_rule" "scheduled_task" {
  name                = "scheduled-task"
  description         = "Scheduled cron trigger for scheduled-task"
  schedule_expression = "cron(0 9 * * 1-5 *)"
}

# Target trigger
resource "aws_cloudwatch_event_target" "lambda_target" {
  rule      = aws_cloudwatch_event_rule.scheduled_task.name
  target_id = "TriggerLambda"
  arn       = "arn:aws:lambda:us-east-1:123456789012:function:my-function"
}
Dialect:
5 fields
Plain EnglishDaily

Every day at 3:00 AM

Runs every day at 3:00 am. Evaluated according to KUBERNETES cron specifications.

Popular Presets:

Frequently Asked Questions

Everything you need to know about Cron expressions, syntax rules, and platform nuances.

What Kubernetes API version should I use for CronJob?

Use "batch/v1" for modern Kubernetes clusters (v1.21+). The older "batch/v1beta1" is deprecated and removed in recent Kubernetes releases.

How do concurrencyPolicy and restartPolicy work in a CronJob?

concurrencyPolicy controls overlapping executions: "Forbid" skips new runs if previous run is active; "Allow" permits concurrent jobs; "Replace" cancels running jobs. restartPolicy is commonly set to "OnFailure" or "Never".