kubernetes-handbook/manifests/test/cronjob.yaml

19 lines
376 B
YAML
Raw Normal View History

2017-05-14 19:08:56 +08:00
apiVersion: batch/v2alpha1
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