Files
Tim McMackin 595e1455ca #4500: Split out tasks in cron jobs docs (#8337)
* first attempt

* Skipping these sections

* cleanup and style

* style

* move schedule info to schedule section

* link to example
2018-05-06 12:01:50 -07:00

19 lines
375 B
YAML

apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: hello
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