Merge pull request #20472 from mufti1/id-cronjob-task

ID /docs/tasks/job/automated-tasks-with-cron-jobs/
This commit is contained in:
Kubernetes Prow Robot
2020-05-11 21:42:21 -07:00
committed by GitHub
2 changed files with 232 additions and 0 deletions
@@ -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