apiVersion: batch/v1
kind: CronJob
metadata:
  name: nightly-reconcile
  namespace: example-apps
spec:
  schedule: "17 2 * * *"
  timeZone: Etc/UTC
  concurrencyPolicy: Forbid
  startingDeadlineSeconds: 300
  successfulJobsHistoryLimit: 3
  failedJobsHistoryLimit: 1
  jobTemplate:
    spec:
      backoffLimit: 2
      activeDeadlineSeconds: 1800
      template:
        spec:
          restartPolicy: OnFailure
          containers:
            - name: reconcile
              image: registry.example.invalid/example-org/reconcile:1.0.3
              args:
                - --window=24h
                - --dry-run=false
              resources:
                requests:
                  cpu: 50m
                  memory: 64Mi
