apiVersion: batch/v1
kind: Job
metadata:
name: pi
spec:
parallelism: 1 (1)
completions: 1 (2)
template: (3)
metadata:
name: pi
spec:
containers:
- name: pi
image: perl
command: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]
restartPolicy: Never
-
Optional value for how many pod replicas a job should run in parallel; defaults to
completions
. -
Optional value for how many successful pod completions are needed to mark a job completed; defaults to one.
-
Template for the pod the controller creates.