# CronJob schedule in Cron format
schedule: "0 */6 * * *"  # Every 6 hours

# Concurrency policy: Allow, Forbid, or Replace
concurrencyPolicy: Forbid

# How many successful jobs to keep
successfulJobsHistoryLimit: 3

# How many failed jobs to keep
failedJobsHistoryLimit: 1

# Deadline in seconds for starting the job if it misses scheduled time
startingDeadlineSeconds: 300

# Suspend the cron job
suspend: false

# Job backoff limit
backoffLimit: 3

# TTL for finished jobs (seconds)
ttlSecondsAfterFinished: 86400  # 24 hours

image:
  repository: busybox
  pullPolicy: IfNotPresent
  tag: "1.36"

imagePullSecrets: []

serviceAccount:
  create: true
  annotations: {}
  name: ""

podAnnotations: {}

podSecurityContext:
  runAsNonRoot: true
  runAsUser: 1000
  fsGroup: 1000

securityContext:
  allowPrivilegeEscalation: false
  capabilities:
    drop:
    - ALL
  readOnlyRootFilesystem: true
  runAsNonRoot: true
  runAsUser: 1000

# Command to run
command:
  - /bin/sh
  - -c
  - date; echo "Running scheduled job"

resources:
  limits:
    cpu: 100m
    memory: 128Mi
  requests:
    cpu: 50m
    memory: 64Mi

env: []
volumes: []
volumeMounts: []
nodeSelector: {}
tolerations: []
affinity: {}

# Restart policy for job pods
restartPolicy: OnFailure
