Skip to content

Commit

Permalink
Updated Cron Job example
Browse files Browse the repository at this point in the history
  • Loading branch information
eminalemdar committed Jun 15, 2022
1 parent 897a020 commit 42dcf1d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions CronJob/simple.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
---
# https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/
apiVersion: batch/v1beta1
apiVersion: batch/v1
kind: CronJob
metadata:
name: cronjob-simple
spec:
schedule: "*/1 * * * *"
schedule: "* * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- args:
- command:
- /bin/sh
- -c
- date; echo Hello from the Kubernetes cluster cronjob
image: busybox
image: busybox:1.28
imagePullPolicy: IfNotPresent
name: cronjob-simple-container
restartPolicy: OnFailure

0 comments on commit 42dcf1d

Please sign in to comment.