apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: periodic-job
spec:
  schedule: "*/1 * * * *"
  successfulJobsHistoryLimit: 3
  failedJobsHistoryLimit: 3
  startingDeadlineSeconds: 60
  concurrencyPolicy: Forbid
  jobTemplate:
    spec:
      template:
        spec:
          containers:
          - name: periodic-container
            image: busybox
            args:
            - /bin/sh
            - -c
            - echo "Executed at $(date)"
          restartPolicy: "Never"