apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: world
spec:
  schedule: "30 0 * * *"
  jobTemplate:
    spec:
      template:
        spec:
          containers:
          - name: world
            image: busybox
            args:
            - /bin/sh
            - -c
            - date; echo World from the Kubernetes cluster
          restartPolicy: OnFailure