kubernetes/test/e2e/testing-manifests/kubectl/busybox-cronjob.yaml.in
wangyysde 558bdd18aa Update cronjob integration test to batch/v1
Signed-off-by: wangyysde <net_use@bzhy.com>
2021-06-04 21:04:21 +08:00

22 lines
448 B
YAML

apiVersion: batch/v1
kind: CronJob
metadata:
name: cronjob-test
spec:
schedule: "*/1 * * * *"
concurrencyPolicy: Allow
suspend: false
startingDeadlineSeconds: 30
successfulJobsHistoryLimit: 3
failedJobsHistoryLimit: 1
jobTemplate:
spec:
template:
spec:
containers:
- name: test
image: {{.BusyBoxImage}}
args:
- "/bin/true"
restartPolicy: OnFailure