We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 897a020 commit 42dcf1dCopy full SHA for 42dcf1d
CronJob/simple.yaml
@@ -1,20 +1,21 @@
1
---
2
# https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/
3
-apiVersion: batch/v1beta1
+apiVersion: batch/v1
4
kind: CronJob
5
metadata:
6
name: cronjob-simple
7
spec:
8
- schedule: "*/1 * * * *"
+ schedule: "* * * * *"
9
jobTemplate:
10
11
template:
12
13
containers:
14
- - args:
+ - command:
15
- /bin/sh
16
- -c
17
- date; echo Hello from the Kubernetes cluster cronjob
18
- image: busybox
+ image: busybox:1.28
19
+ imagePullPolicy: IfNotPresent
20
name: cronjob-simple-container
21
restartPolicy: OnFailure
0 commit comments