apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: hello
spec:
  schedule: "*/1 * * * *"
  jobTemplate:
    spec:
      template:
        spec:
          containers:
          - name: hello
            image: centos
            command: ["/bin/sh","-c"]
            #args: ["FROM=$(date +'%Y-%m-%d'); curl from$FROM"]
            args: ["curl `(date +'%Y-%m-%d')`"]
          restartPolicy: OnFailure
