apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: pi
spec:
schedule: "*/1 * * * *" (1)
concurrencyPolicy: "Replace" (2)
startingDeadlineSeconds: 200 (3)
suspend: false (4)
successfulJobsHistoryLimit: 3 (5)
failedJobsHistoryLimit: 1 (6)
jobTemplate: (7)
spec:
template:
metadata:
labels: (8)
parent: "cronjobpi"
spec:
containers:
- name: pi
image: perl
command: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]
restartPolicy: OnFailure (9)