Last active
September 15, 2020 11:24
-
-
Save shark8me/e38972821acf4f7cc89b5eb818382bf6 to your computer and use it in GitHub Desktop.
Running a Kubernetes Job from the Clojure Repl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (def pi-job-spec | |
| {:apiVersion "batch/v1" | |
| :kind "Job" | |
| :metadata {:name "pi"} | |
| :spec {:ttlSecondsAfterFinished 200 | |
| :template | |
| {:spec | |
| {:containers | |
| [{:name "pi" | |
| :imagePullPolicy "Always" | |
| :image "perl" | |
| :command ["perl" "-Mbignum=bpi" | |
| "-wle" "print bpi(50)"]}] | |
| :restartPolicy "Never"}}}}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment