ce0e1fa9fd
Dedent the backoffLimit key so that it lives in the Job spec, not the Pod spec, where it actually belongs.
17 lines
280 B
YAML
17 lines
280 B
YAML
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: pi
|
|
spec:
|
|
template:
|
|
metadata:
|
|
name: pi
|
|
spec:
|
|
containers:
|
|
- name: pi
|
|
image: perl
|
|
command: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]
|
|
restartPolicy: Never
|
|
backoffLimit: 4
|
|
|