apiVersion: batch/v1beta1
kind: CronJob
metadata:
    name: hello
spec:
    schedule: "*/1 * * * *"
    jobTemplate:
        spec:
            template:
                spec:
                    containers:
                    - name: hello
                      image: apline
                      args:
                      - /bin/sh
                      - -c
                      - echo "hi, current time is $(date)"
                    restartPolicy: OnFailure
