Skip to content

Commit

Permalink
chore: user real example, and fix yaml in markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeldeib committed May 22, 2019
1 parent baf9af8 commit 0d4339b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/book/src/cronjob-tutorial/running.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ anything just yet.
At this point, we need a CronJob to test with. Let's write a sample to
`config/samples/batch_v1_cronjob.yaml`, and use that:

```yaml
{{#include ./testdata/project/config/samples/batch_v1_cronjob.yaml}}
```

```bash
kubectl create -f config/samples/batch_v1_cronjob.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,18 @@ kind: CronJob
metadata:
name: cronjob-sample
spec:
# Add fields here
foo: bar
schedule: "*/1 * * * *"
startingDeadlineSeconds: 60
concurrencyPolicy: Allow # explicitly specify, but Allow is also default.
jobTemplate:
spec:
template:
spec:
containers:
- name: hello
image: busybox
args:
- /bin/sh
- -c
- date; echo Hello from the Kubernetes cluster
restartPolicy: OnFailure

0 comments on commit 0d4339b

Please sign in to comment.