Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ba3a518

Browse files
authored
Create mycronjob.yaml
1 parent 6a6f73c commit ba3a518

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

hands-on/mycronjob.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apiVersion: batch/v1
2+
kind: CronJob
3+
metadata:
4+
creationTimestamp: null
5+
name: mycronjob
6+
spec:
7+
jobTemplate:
8+
metadata:
9+
creationTimestamp: null
10+
name: mycronjob
11+
spec:
12+
backoffLimit: 5
13+
activeDeadlineSeconds: 20
14+
template:
15+
metadata:
16+
creationTimestamp: null
17+
spec:
18+
containers:
19+
- image: busybox
20+
command:
21+
- /bin/sh
22+
- -c
23+
- date; echo Hello from the Kubernetes cluster
24+
name: mycronjob
25+
resources: {}
26+
restartPolicy: OnFailure
27+
schedule: '*/1 * * * *'
28+
status: {}

0 commit comments

Comments
 (0)