website/docs/user-guide/cronjob.yaml

19 lines
376 B
YAML
Raw Normal View History

2016-08-26 23:23:16 +00:00
apiVersion: batch/v2alpha1
2016-11-09 10:32:57 +00:00
kind: CronJob
2016-08-26 23:23:16 +00:00
metadata:
name: hello
spec:
schedule: "*/1 * * * *"
2016-08-26 23:23:16 +00:00
jobTemplate:
spec:
template:
spec:
containers:
- name: hello
image: busybox
args:
- /bin/sh
- -c
- date; echo Hello from the Kubernetes cluster
restartPolicy: OnFailure