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

19 lines
334 B
YAML
Raw Normal View History

2023-12-15 16:39:01 +08:00
apiVersion: apps/v1
kind: Jobs
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