apiVersion: batch/v1
kind: Job
metadata:
  labels:
    app: k8s-examples
  name: pi
spec:
  template:
    metadata:
      labels:
        app: k8s-examples
      name: pi
    spec:
      containers:
      - name: pi
        image: perl
        command: ["perl",  "-Mbignum=bpi", "-wle", "print bpi(2000)"]
      restartPolicy: Never
