---
apiVersion: batch/v1
kind: CronJob
metadata:
  name: OmiCronJob
spec:
  schedule: "*/1 * * * *"
  concurrencyPolicy: Deny
  jobTemplate:
    spec:
      template:
        spec:
          containers:
          - name: hello
            image: busybox
            imagePullPolicy: IfNotPresent
            command:
            - /bin/sh
            - -c
            - date; echo Hello world
          restartPolicy: OnFailure