blob: 4b8108a0e42c9c51dc738c8ec097540fd178d525 [file] [log] [blame]
apiVersion: batch/v2alpha1
kind: CronJob
metadata:
name: hellocron
spec:
schedule: "*/1 * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: hello
image: busybox
args:
- /bin/sh
- -c
- date; echo Hello from the Kubernetes cluster
restartPolicy: OnFailure