apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: my-cronjob
spec:
  schedule: "*/1 * * * *"
  jobTemplate:
    spec:
      template:
        spec:
          containers:
            - name: busybox
              image: busybox:1.32.0
              command: [ "/bin/sh" ]
              args: [ "-c", "date" ]
          restartPolicy: OnFailure