Commit 0d4339b 1 parent baf9af8 commit 0d4339b Copy full SHA for 0d4339b
File tree 2 files changed +17
-2
lines changed
docs/book/src/cronjob-tutorial
testdata/project/config/samples
2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,9 @@ anything just yet.
25
25
At this point, we need a CronJob to test with. Let's write a sample to
26
26
` config/samples/batch_v1_cronjob.yaml ` , and use that:
27
27
28
+ ``` yaml
28
29
{{#include ./testdata/project/config/samples/batch_v1_cronjob.yaml}}
30
+ ```
29
31
30
32
``` bash
31
33
kubectl create -f config/samples/batch_v1_cronjob.yaml
Original file line number Diff line number Diff line change @@ -3,5 +3,18 @@ kind: CronJob
3
3
metadata :
4
4
name : cronjob-sample
5
5
spec :
6
- # Add fields here
7
- foo : bar
6
+ schedule : " */1 * * * *"
7
+ startingDeadlineSeconds : 60
8
+ concurrencyPolicy : Allow # explicitly specify, but Allow is also default.
9
+ jobTemplate :
10
+ spec :
11
+ template :
12
+ spec :
13
+ containers :
14
+ - name : hello
15
+ image : busybox
16
+ args :
17
+ - /bin/sh
18
+ - -c
19
+ - date; echo Hello from the Kubernetes cluster
20
+ restartPolicy : OnFailure
You can’t perform that action at this time.
0 commit comments