kubernetes-yaml/description/Workload/Job/example-pi.yml

19 lines
334 B
YAML

apiVersion: batch/v1
kind: Job
metadata:
name: example-pi
namespace: demo
labels:
name: example-pi
app: pi
type: job
spec:
template:
spec:
containers:
- name: pi
image: perl
command: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]
restartPolicy: Never
backoffLimit: 4