apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: hello
  labels:
    app.kubernetes.io/name: go-demo
spec:
  schedule: "*/1 * * * *"
  jobTemplate:
    spec:
      template:
        spec:
          containers:
          - name: hello
            image: alpine:latest
          restartPolicy: OnFailure
