apiVersion: batch/v2alpha1
kind: ScheduledJob
metadata:
name: pi
spec:
schedule: */1 * * * ? (1)
jobTemplate: (2)
spec:
template:
metadata:
labels: (3)
parent: "schedjobpi"
spec:
containers:
- name: pi
image: perl
command: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]
restartPolicy: OnFailure (4)