Create cronjob.yaml

This commit is contained in:
AdamDang
2018-11-19 20:12:09 +08:00
committed by GitHub
parent 3ef3427128
commit 930d838898
@@ -0,0 +1,18 @@
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