SysKit logo
CronJob Generator
Kubernetes • batch/v1
Environment variables
Optional env entries for the container.
Generated YAML
Client-side. Nothing is sent to a server.
apiVersion: batch/v1
kind: CronJob
metadata:
  name: report-job
  namespace: default
spec:
  schedule: "0 * * * *"
  timeZone: UTC
  concurrencyPolicy: Forbid
  successfulJobsHistoryLimit: 3
  failedJobsHistoryLimit: 1
  jobTemplate:
    spec:
      template:
        spec:
          restartPolicy: OnFailure
          containers:
          - name: report-job
            image: busybox:1.36
            command:
            - /bin/sh
            - "-c"
            args:
            - echo hello from cron
            env:
            - name: ENV
              value: prod