apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: cronjob
  namespace: default
spec:
  schedule: "@hourly"
  jobTemplate:
    spec:
      template:
        spec:
          containers:
          - name: cronjob
            image: nonexisting
          restartPolicy: OnFailure
