From 930d838898c5563db8aaa1134da03cd24648f7ab Mon Sep 17 00:00:00 2001 From: AdamDang Date: Mon, 19 Nov 2018 20:12:09 +0800 Subject: [PATCH] Create cronjob.yaml --- .../zh/examples/apllication/job/cronjob.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 content/zh/examples/apllication/job/cronjob.yaml diff --git a/content/zh/examples/apllication/job/cronjob.yaml b/content/zh/examples/apllication/job/cronjob.yaml new file mode 100644 index 0000000000..c9d3893027 --- /dev/null +++ b/content/zh/examples/apllication/job/cronjob.yaml @@ -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