Skip to content

Commit 42dcf1d

Browse files
committed
Updated Cron Job example
1 parent 897a020 commit 42dcf1d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

CronJob/simple.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
---
22
# https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/
3-
apiVersion: batch/v1beta1
3+
apiVersion: batch/v1
44
kind: CronJob
55
metadata:
66
name: cronjob-simple
77
spec:
8-
schedule: "*/1 * * * *"
8+
schedule: "* * * * *"
99
jobTemplate:
1010
spec:
1111
template:
1212
spec:
1313
containers:
14-
- args:
14+
- command:
1515
- /bin/sh
1616
- -c
1717
- date; echo Hello from the Kubernetes cluster cronjob
18-
image: busybox
18+
image: busybox:1.28
19+
imagePullPolicy: IfNotPresent
1920
name: cronjob-simple-container
2021
restartPolicy: OnFailure

0 commit comments

Comments
 (0)