apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: hello-cronjob
spec:
  schedule: "*/2 * * * *"
  jobTemplate:
    spec:
      template:
        spec:
          containers:
          - name: hello-cronjob
            image: busybox
            args:
              - /bin/sh
              - -c
              - date; echo hello from the k8s cluster
          restartPolicy: OnFailure
