Skip to content

Instantly share code, notes, and snippets.

@danielhelfand
Created March 3, 2022 02:32
Show Gist options
  • Save danielhelfand/8e9832119bb9c1d645886a3572c04b99 to your computer and use it in GitHub Desktop.
Save danielhelfand/8e9832119bb9c1d645886a3572c04b99 to your computer and use it in GitHub Desktop.
apiVersion: batch/v1
kind: Job
metadata:
name: pi-with-ttl
spec:
ttlSecondsAfterFinished: 100
template:
spec:
containers:
- name: pi
image: perl
command: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]
restartPolicy: Never
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment